I wrote an app, following Erel's basic Fcm example, with foreground screenshots, which contains the FirebaseMessaging service for receiving push notifications
Being the code enclosed within a service, I thought that the notification reception should always remain active
On the other hand, if I press the 'recent app' button and then the icon in the center of the app, 'application information' and then 'forced shutdown' my app switches off
And with it the possibility of sending push notifications to the phone
Question is: how to write an app that contains a service 'unbreakable' for receiving push notifications?
Being the code enclosed within a service, I thought that the notification reception should always remain active
On the other hand, if I press the 'recent app' button and then the icon in the center of the app, 'application information' and then 'forced shutdown' my app switches off
And with it the possibility of sending push notifications to the phone
Question is: how to write an app that contains a service 'unbreakable' for receiving push notifications?