I'm using FCM to send notifications to my users, unfortunately some manufacturers interfere with notifications delivery, according to this article: https://onesignal.com/blog/manufacturers-interfere-with-reliable-notifications/
The problems comes up normally when users swipe off your app from the recent apps stack, since this cause a force stop on some devices.
Thinking of a solution, I've noticed that when app is opened after a notification is sent (but it's not shown by phone), the notification finally is displayed... so, my suggested approach it's to launch my app (in background) periodically to ensure that notifications are delivered to my users.
So.. my question: How can I launch my app on background programatically?
Maybe posible with alarmManager
, but not sure.
Some related info on this thread: Android app not receiving Firebase Notification when app is stopped from multi-task tray