New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plan for doing push amplification? #956
Comments
@jkasten2 any plans |
@rameshvoltella "Push Amplification" isn't a defined standard, each of the descriptions are different between vendors so each of them cover different scopes. What is the most important feature(s) to you? 1. Providing a list of notifications when the user opens your appA. Notifications not shown due to notification permission being disabled. (app level)
2. Android - Show a notification even if your app is Force StoppedThis section is scoped to showing a notification on the device at the time of send when the app is in a Force Stopped / Force Killed state, part 1B above covers on app open already. Let's start by defining when an app gets closed normally vs when an app would be Force Stopped / Force Killed. 2.1 When does an app close normally?Normal closes, notifications still show in these cases:
In these cases above your app process will closed but if push comes in your app will be started in the background to process the push payload and a notification will be shown. 2.2 When does an app become "Force Stopped"?Force Stopped / Force Killed state doesn't happen under normal conditions.
2.3 Why pushes do not work on app is "Force Stopped"?The "Google Play services" app on the device will first handle the push. Then it creates an 2.4 When does an app leave the "Force Stopped"?The only way an app can get out of the "Force Stopped" is if the user opens your app again from the home screen launcher. When an app is "Force Stopped" all scheduled Alarms, Jobs, ect are canceled for the app. So these don't work to bring the app back out of this state. So this means a "backup polling" strategy is not possible either. 2.5 How to prevent my app from being "Force Stopped"?Most of the non-standard versions of Android developed by these manufactures provide a way to whitelist apps to prevent their custom "Force Stopped" logic. The best thing you can do is instruct your users who are on these devices to whitelist your app if notifications and / or other background features are important to them.
3. Notification not shown due a blocked connection to FCMA "backup polling" strategy would technically by possible if a connection to Google was being blocked, however it's highly discouraged due to a cost of battery drain along with resources (CPU, RAM, Data usage) to the device. The real world case for this I can see is if your user is in a county is that blocks Google, such as China. However a more correct solution to this issue would be to support push channels that work in the region, to avoid the device resource load. |
i need option 2 @jkasten2 |
@rameshvoltella I have updated section 2 with a lot of extra detail on what a normal close is vs a Force Stopped as well as explain how it happens and recommendations on handling the "manufacturers which kills the app" question you had. |
Closing due to inactivity |
Hi,
This is a question,Any plan to add push amplification technique which done by cleavetap,mobengage people to make delivery on chines oems and othe manufature which kills the app?if possible please try to add this in future relases.
mobengage
cleaver tap
The text was updated successfully, but these errors were encountered: