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.
Related
I've noticed the Kobo app on my Nook Color (CM7.1) sends me spammy "Reading Life Suggestion" notifications even when I haven't launched the app and I'm doing something else. Is there any way on a rooted device to ban an app from sending anything to the notifications bar? There is supposed to be a setting to disable this, but it doesn't work - I still get the spam.
I have complained to Kobo by e-mail and I've reported the app as malicious on the Market with a one-star rating. I encourage you all to do the same until fixed. In the meantime, any ideas short of uninstalling?
You could try downloading an add block of the market this sometimes stops these kinda advertising
zonda2323 said:
You could try downloading an add block of the market this sometimes stops these kinda advertising
Click to expand...
Click to collapse
The ad block apps usually just block domains. This won't help because it's coming straight from Kobo servers.
What I just want is an app that can prevent, at the OS level, the notifications from reaching my status bar. Or clear them automatically.
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...
In the stock android main settings you can manually restrict background data for individual apps (though the settings menu prompts you that it is usually better to find the option for this within the app itself which clearly seems to be the android paradigm).
I don't see anyway though, to centrally control foreground data for individual apps. I.e. If I want an app that relies on an internet connection to refresh on WiFi only but the app itself doesn't have an option for this and I don'[t want to turn network data off completely (as I still want to use it for other apps). Other than just not opening that particular app does Android provide any way to handle this like iOS does?
Somewhat related is the new Hangouts app. On iOS I notice it provides an in-app setting to use WiFi only but the Android app does not seem to have this option (v2.3.75067996). Is there any particular reason for this? An architectural difference between Android and iOS maybe?
I was looking through the developer options in my Xperia 1, and I was curious about the following attributes. So was wondering if anyone had any thoughts on these:
Under Networking: "Mobile data always active" was enabled. Will disabling this lead to better battery life? Not sure if it's necessary to use mobile data while connected to WiFi.
Under Apps, what does the "Background Check" option actually show? Are these application that are running in the background?
Under Standby Apps, it's a list of all apps on the phone with "App Standby State" option either "RARE, FREQUENT, WORKING_SET and ACTIVE". For example, if the Amazon app says "FREQUENT" and I toggle it to "RARE", will that mean the app will stay in standby state and save battery? Or am I misinterpreting this?
On a side note, under Setting--> Apps, toggling the following options individually for most user apps improved my standby/idle drain significantly.
Data Usage - Toggle "Background Data" off
Battery - Toggle "Background Restriction" to "Restricted"
I probably won't recommend this for any apps that need to send notifications like WhatsApp since toggling these 2 options seems to stop any messages from coming in unless I open WhatsApp manually.
That setting might help with battery life, but kills smartphone functionality.
nurav666 said:
Data Usage - Toggle "Background Data" off
Battery - Toggle "Background Restriction" to "Restricted"
I probably won't recommend this for any apps that need to send notifications like WhatsApp since toggling these 2 options seems to stop any messages from coming in unless I open WhatsApp manually.
Click to expand...
Click to collapse
Interesting question @nurav666
The standby apps is a feature of Android 9 that divides apps in 4 buckets based on how much you use them. Apps that you rarely use will have fewer rights to send you notifications for example. Apps you use frequently will have full rights.
App developers need to make sure their app works properly in any of the states.
You can find more detailed information in the Google developer documentation. https://developer.android.com/topic/performance/appstandby
This is an interesting read for advanced users and not necessarily only for developers.
I have the following privacy policy which is located here: http://minutewalks.inthepress.biz/PrivacyPolicy.html The text of the policy is:
MinuteWalks Privacy Policy
This app collects location data. The data collected remains on your device and is only stored and used in order to calculate the distance you have travelled. All the analysis is done on your device. No data is communicated to or shared with us or anyone else. No data is stored after monitoring is stopped. Monitoring continues in the background in order to allow you to continue receiving audible notifications and carry on using other apps to listen to music, provide other fitness monitoring or anything else you want to do. So long as monitoring is ongoing you will see a notification. You can stop monitoring at any time by pressing the stop button in the app. If you have closed the app you can restart it as normal to stop monitoring or you can restart it by tapping on the notification.
Click to expand...
Click to collapse
Google just keep saying: "make sure your privacy policy specifically covers user privacy" and are marking my app as non-compliant.
Can anyone help me understand this so that I can fix it?