GCM (Google Cloud Messaging) & eBay app - Android Q&A, Help & Troubleshooting

As I understand it, push notification is delivered in Android by GCM, which replaced C2DM.
For this to work you need "auto-sync" switched on your device and setup for that app.
This should allow for 2 things:
Lower power and bandwidth usage by server pushing rather than phone polling and pulling information
notification works even if the app is not running, as the msg can include a INTENT to start the app
However my eBay app gets notifications after a reboot, without me starting the app and without auto-sync being switched on or eBay app appearing in its list of apps.
Any thoughts?
Is eBay auto-starting (shouldn't be according to ES task mgr) is it polling for updates (surely that is not peformance friendly).

is there any further information I can provide to help with this query?

Hello,
Your post is old, but let me bring my answer...
you should use another app to detect whether or not if your app is able to autostart or no ie : autorun manager, or the Xposed module(boot manager)
Ebay will autostart because of notification as stated in the attachment file...

Related

[Q] How to stopp app from resetting autostart/event hooks ?

I am using the "autostarts" app to modify the autostart and events hooks. I notice that there are some nasty apps that simply revert the settings when they are run. The Amazon Appstore for example sets a call under "Time Changed" that triggers the app (and network traffic). When I try to disable this call in autostarts it gets re-enabled the next time I manually run Appstore again. Is there a way to revoke an apps ability to modify autostarts ? If this can only solved with another app, then preferrably something (ad)free and open source.
I am using privacy guard, but even with all options disabled Appstore still meddles with my autostart settings.
My System: Cyanogenmod 10.2 on a Samsung Galaxy S3 mini.
tnx Mark

GCM Push Notification behaviour..

Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
last1left91 said:
Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
Click to expand...
Click to collapse
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
tnsmani said:
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
Click to expand...
Click to collapse
Thanks..you were very clear with your explanation but this morning something strange happened!
I connected to the Internet and played a bit with messenger app on my mobile data...then I disconnected my mobile data and closed the process associated to the Messenger App...I had to close it manually from Active Apps screan...it seems there's no other way...
And after 2-3 minutes or even more I checked my Active Apps...I did a shortcut with Quick Shorcut Maker and launching it through a swipe gesture from anywhere using GMD Gesture Control...I'm such disperate to close all the apps's processes when they(the apps) are no longer in use...Well, deep sleep has to stay deep sleep and I don't want any apps to run in background unless they are related to notifications...but when I'm not connected to the Internet I want all my apps's processes closed except apps like : Swapps, Internet SpeedMeter , GMD Gesture Control, My Data Manager, Greenfy, Tasker, Samsung Keyboard and System UI whose associated processes MUST stay there, under Active Apps Category List...
Well, I've seen Greenfy provides me a shortcut for the greenfied apps...but I don't know what this shortcut does..
Well....let's say at the moment X I have these 2 apps, Messenger and Facebook under Active apps, which means their processes are running...
Well, when I'm greenfying them which means when I press on that shortcut button shouldn't those apps be eliminated from Active Apps List..because this doesn't happen...I still have to enter myself and close the processes manually...then what's the shorcut's point? )...The apps were already greenfied through Greenfy App...weeks ago...do you get my point?..
I wanted that shortcut to automatically eliminate those 2(or any) running processes when I press on it!! Do you know any ways to obtain this behaviour so I weren't under the necessity to press explicitly on the "Stop" button?? Thanks in advance!!
@last1left91
I think that by manually killing a running process, you lose more battery. It may also affect the stability of the Apps concerned.
The best way to do it is using Greenify. But I don't know why these two are not hibernated when you use the shortcut.
Let us wait for @oasisfeng
First of all, let me explain the state words. "Working" means the app is reporting it self actively working to Android system thus should avoid being killed. Greenify respects this state unless it is black-listed (check "always ignore its state" when manual hibernating a "working" app). "content provided" means its content is accessed by some other app in a cross-app-interaction way (usually via APIs). In your case, its most probably accessed by Facebook app. Then the Facebook app itself is usually woken by other apps with Facebook feature integration (login, "like" and etc.) In most cases, they do hibernate, but usually woken when you launch other apps (with Facebook integration). You can let it go since Greenify should automatically hibernate them again after screen goes off next time.
The shortcut of "Hibernate" will only put apps in "pending" section into hibernation. If an app is shown as "Working", it will not be hibernated by the shortcut too. To override that, manually hibernate it once and check "always ignore its state" there.

Questions on Doze and apps not working properly

I have a dual sim Sony Z5 running Android 6.0.1, but I am posting here because my question should be generic and not Sony-specific.
I have been doing lots of reading online, but cannot find the answer to these very basic questions:
When exactly does Doze kick in? Some sites say after 1 hour, some say after 3 or more, and Android’s website only says “after a period of time” (https://developer.android.com/training/monitoring-device-state/doze-standby.html ). Isn’t there any official documentation on this?
After a device enters Doze mode, how often does the system exit Doze and for how long? The previous link only says: Periodically, the system exits Doze for a brief time to let apps complete their deferred activities. During this maintenance window, the system runs all pending syncs, jobs, and alarms, and lets apps access the network. Again, isn’t there any official documentation on this?
Is there a way to monitor when the phone was in Doze and when in a maintenance windows
I want 3 apps to continue functioning normally even in Doze mode: whatsapp, k9 mail (on which I use imap idle for push email to my private email address), and Good Work (now owned by Blackberry) to connect to my company’s Exchange server and retrieve work emails etc. How can I achieve this? Is it documented anywhere if these apps issue the high priority GCM messages that Doze expects? I have excluded these apps from the battery optimization settings, yet I have been experiencing erratic behaviour (sometimes they sync, sometimes they don’t) when I leave the phone on a desk, connected to wifi (with keep wifi on during sleep set to always).
I am open to considering another email client which supports imap idle (as long as it doesn’t store my data and passwords on its servers (like Type App / Blue mail do), but I cannot replace Good Work with anything else as that is the only app which my employer allows to connect to its network.
Incidentally, I didn’t want Marshmallows on my phone, also because I believe Sony’s Stamina is more transparent and efficient (http://www.xda-developers.com/sonys-stamina-mode-did-it-first/ ); I was hoping my phone would ship with Lollipop, but unfortunately it came with Marshamllows. Ah, I cannot root because otherwise Good Work wouldn’t work.
This lack of transparency is a step in the wrong direction; Google is behaving like Apple in telling us not to worry our pretty little heads, but Google doesn't always know best! Apps which rely on push notifications may not work unless developers rewrite them, and there is no way to disable doze. it's crazy!
cdl2 said:
I
Is there a way to monitor when the phone was in Doze and when in a maintenance windows [...] ?
Click to expand...
Click to collapse
I have found that the GSAM battery app tracks it: https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=en_GB ( charts --> other).
I haven't found a way to monitor it from Android's system - not on my sony Z5, at least.
No one knows?
Anyway, this partial solution works for me: http://androidforums.com/threads/ma...x-is-preventing-doze-with-macrodroid.1058445/
It's about using MacroDroid to wake up the phone every 45 minutes, thus prveenting Doze mode from kicking in at all. Battery usage is acceptable (1% /hour with two push emails on)
No updates? Am I the only one who cares about push email not working?
cdl2 said:
No updates? Am I the only one who cares about push email not working?
Click to expand...
Click to collapse
Go to settings then go to power manager(in my phone) and click on battery optimization and select apps that you want to run in doze mode and select don't optimized.
I hope it solved your problem.
No, it does not. Android's official documentation explains that whitelisting is effectively useless, because 'other restrictions still apply' :
https://developer.android.com/train...doze-standby.html#support_for_other_use_cases
I have tried, and imap idle with k9 mail does not work when my Sony z5 is in doze, despite the whitelisting

How do I write a Greenify prescription?

Hello.
I'm trying to understand how to write a Greenify prescription.
My main use would be to try annoying promotion notification which can't be turned off.
My current knowledge would be that an app registers with Google Play Services to use FCM, which fires a broadcast data containing notification data to an app's receiver, then the app uses the received broadcast to display the notification.
Is it possible to deregister a specific FCM using app from Google Play Services so maximum amount of battery is conserved?
If it is not possible, how do one find a broadcast to target with prescription? for example, if a notification is shown on the notification shade, will it contain any clues to which receiver is to be targeted?
Thank you bery much.
Do I need to use Greenify or there is an open source alternative to Greenify to achieve the same thing?
emanresu2 said:
Hello.
I'm trying to understand how to write a Greenify prescription.
My main use would be to try annoying promotion notification which can't be turned off.
My current knowledge would be that an app registers with Google Play Services to use FCM, which fires a broadcast data containing notification data to an app's receiver, then the app uses the received broadcast to display the notification.
Is it possible to deregister a specific FCM using app from Google Play Services so maximum amount of battery is conserved?
If it is not possible, how do one find a broadcast to target with prescription? for example, if a notification is shown on the notification shade, will it contain any clues to which receiver is to be targeted?
Thank you bery much.
Do I need to use Greenify or there is an open source alternative to Greenify to achieve the same thing?
Click to expand...
Click to collapse
For how to write prescription: https://greenify.github.io/
Notification can be disabled either for the whole app or for a specific channel.
FCM may post notification on behalf of the app if app is not active, so blocking the broadcast may not work as expected.

Bootloop / Rebooting when WiFi is turned on?

Hi Folks,
3 nights ago for the 2nd time only, I connected to the Internet with WiFi and I noticed some apps were being updated. Somewhere along the way Automatic Updates was reset from Off to Via Wi-Fi only. It stopped on the third.
apps_Packages info is reporting the following 3 apps, in descending Date and Time order, as being updated but they still appear listed in the screen for App Updates which is accessed from the Update Center listed on the screen for About Phone.
LG Account
RemoteCall Service
LG Mobile Switch
My intention was to to look at LG SmartWorld to see what Dark Themes they have to offer before disabling this app. I would like a System Wide theme with Black Text on a Grey or Dark Grey background.
Are themes an inherent feature of Launchers that are automatically applied to all apps?
Not too long afterwards the phone Rebooted and this would happen again after 2 or so minutes each time after I entered my PIN and started checking settings etc.
I turned off WiFi and the rebooting stopped.
I noticed afterwards that less RAM is being used by the System.
Same thing started happening again the following morning when I turned Wi-Fi on again.
Has anyone else had a similar experience?
Have I possibly disabled something that is required for WiFi to function correctly or for apps to be able to properly communicate with the Wi-Fi processes?
I had previously used the Force stop button for apps such as Gallery, Weather, My Places, Email, Exchange, QuickMemo+ etc.
There does not appear to be a Software Update to Oreo 8.0 available but the following apps are listed as having updates available. Do they need to be updated first in order for the system to "properly" check for a Software Update?
Email
Home & app drawer
LG Account
LG Keyboard
LG Mobile Switch
QuickMemo+
RemoteCall Service
Weather
What I would like to achieve is to have everything disabled as much as possible before removing the SIM Chip from my old phone and installing it into this one.
The following Apps, I want disabled, but keep appearing in the lists of Running Services and Cached Processes even after I have used the Force stop button and after every Reboot.
Email
FmService (Can this be replaced by a Third Part app?)
Gallery
My Places
QuickMemo+
RemoteCall Service
Weather
Weather Service
I want the following disabled also.
Exchange
LG Account
LG Backup
LG Health
LG Keyboard (after installing AnySoftKeyboard)
Is the only way to ensure this, without loading another ROM, to use ADB (Android Debug Bridge) and uninstall the Apps? I am using MX Linux.
I have seen various Debloat lists on this forum and there is some useful information provided via the following page.
lists · master · W1nst0n / Universal Android Debloater · GitLab
Bash script using ADB to debloat rooted and non-rooted android devices. Improve your privacy, the security and battery life of your device.
gitlab.com
For example, in the Google.sh list the following is noted.
##################### YOU SHOULDN'T MESS WITH THEM (core packages and may cause bootloop) #####################
#"com.google.android.captiveportallogin"
# Support for captive portal : https://en.wikipedia.org/wiki/Captive_portal
# A captive portal login is a web page where the users have to input their login information or accept the displayed terms of use.
# Some networks (typically public wifi network) use the captive portal login to block access until the user inputs
# some necessary information
# NOTE : This package is a now a mandatory mainline module (https://www.xda-developers.com/android-project-mainline-modules-explanation/)
Click to expand...
Click to collapse
In the AOSP.sh list the following is noted.
#"com.android.captiveportallogin"
# Support for captive portal : https://en.wikipedia.org/wiki/Captive_portal
# A captive portal login is a web page where the users have to input their login information or accept the displayed terms of use.
# Some networks (typically public wifi network) use the captive portal login to block access until the user inputs
# some necessary information
Click to expand...
Click to collapse
My phone is using com.android.captiveportallogin - Version 7.0 (24). The Disable button is disabled for this app.
Which apps should not be uninstalled with the approach I am taking to mitigate privacy concerns?
For example, is it safe to uninstall the standard Contacts (com.android.contacts) and Contacts Storage (com.android.providers.contacts) apps or are they required by some of the Third Party apps, for Contacts, in order to function properly?
Can the Messaging (com.android.mms) and Phone (Call services - com.android.phone) apps be uninstalled and replaced by Third Party apps such as QKSMS and Simple Dialer?
My current Home Screen (Home & app drawer - com.lge.launcher2) had a Time and Date and Weather widget but, even though I have removed it, the Weather apps still appear in the lists for Running Services and Cached Processes after every Reboot.
Checking the Uses permissions list of apps_Packages info reveals that the Home & app drawer has references to Email, FormManager and Weather.
Could the Email, FormManager and Weather apps be prevented being used by using a different Launcher? Which Launcher?
https://f-droid.org/en/packages/com.vincent_falzon.discreetlauncher
Which Weather apps are recommended as a replacement?
I also want to prevent all the Offers (Advertisements) I keep receiving from my current Service Provider via SMS.
Can this be done using the SIM Toolkit?
Is the SIM Toolkit an app that should not be uninstalled?
Should I do a Factory Reset and start again? If so, will I need to disable, again, all the Gulag (Google) apps that I previously disabled with the Disable button?
Which of the methods on the following page is the best to use?
How to hard reset an LG G5
According to the following page, "If a pattern, PIN, etc. is or has ever been set up on the device, Google account sign-in is required during initial setup."
I am using a PIN but a Google Account has never been configured for the phone.
LG G5 - Factory Data Reset (Powered Off) | Verizon
Here's how to factory / hard reset your LG G5 if the screen freezes or call, app, audio or sync issues occur and the device won't start up.
www.verizon.com
If I do a Factory Reset should I attempt to have the App Updates done before starting to disable any other apps?
What other information could I provide that would help to pinpoint the cause of this problem?
Thanks, M.

Categories

Resources