not opened how can I? I try background service but that not resolve my problem
When a app is killed, can not run a code. You must run app first, then run your code. One way is use of Scheduler service(alarm manager) , to start a killed app. Or use FCM service if you have a server, to start a killed app. Or you can run a foreground service to avoid killing app, but you will have a fixed notification that is not good.
Обсуждают сегодня