Hi to all:
I have tested the example:
All is ok, but when device goes to blank screen, notifications doesn't arrive. Solved with Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER.
Now when device is going to sleep (10-15 minutes) notifications doesn't arrive again. I think service is destroyed or paused, so how can I solve it?
Thanks
I have tested the example:
FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM)
Updated tutorial: https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023.148715/ Clarification: The nice thing about FCM is that your app doesn't need to run in order to receive messages. The FirebaseMessaging receiver will be started by the OS when a new message...
www.b4x.com
Now when device is going to sleep (10-15 minutes) notifications doesn't arrive again. I think service is destroyed or paused, so how can I solve it?
Thanks