I all read this:
This is a new feature added in B4A v8.0. Starting from Android 8.0, services cannot be simply started while the app is in the background or not running at all. Background means that there isn't any visible activity or any service in foreground state (Service.StartForeground). Common cases...
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...
But after ~10 minutes when the app is in the background, no more notifications arrive.
If i set this to true, then at least notifications will arrive after i close the app via the manager, but after ~10 no notifications arrive.
Do I have to use this instead of "StopAutomaticForeground"? Or what else must I do?
Service.AUTOMATIC_FOREGROUND_WHEN_NEEDED