-
I was reading through the android implementation for the I noticed that instead of Is there any added advantage to this method + specifically handing (high priority) data notifications via a More context: I was looking into reliably getting notifications for the app I'm working on. I noticed that on a coworker's phone, an ASUS ROG phone - the Editing to add that I have looked into this: https://help.pushwoosh.com/hc/en-us/articles/360028478751-Android-device-cannot-receive-push-notifications-when-an-application-is-force-stopped-killed I believe that this phone is simply putting the app in a force stop state becuase when I added the app to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Vendors do all sorts of "illegal" things with regard to their respect for the requirements of AOSP that are allegedly enforced by Google before you can say something is "Android". Usually in the name of power management. Usually with the side effect of rendering an app lifeless when it should wake up for some permitted external event (like an FCM JSON arriving on the phone) https://dontkillmyapp.com/ That is not in your control or firebase control unfortunately it is possible to see if an app is in a restricted power state (and this is something available as an API here I think https://notifee.app/react-native/docs/android/background-restrictions I'm not aware of any more reliable method of receiving messages and calling handlers than as implemented in react-native-firebase and documented on rnfirebase.io |
Beta Was this translation helpful? Give feedback.
The answers to your question are lost to time, sorry. The current approach appears to be "sufficient" and that is translated here to "invest time in other areas". You're welcome to try alternative approaches and if there is a superior one, post a PR. We merge all reasonable things where reasonable is translated as supported by available docs and demonstrated success with testing
Unsure on your second question, but it seems testable and thus possible for you to observe / answer?