hello guys i need my app to work even when the user close it from the task manager to receive notification i am not using firebase or anything
is it possible to set the priority in the onstop method so the application will not be destroyed
Hi @soufianemarly , you can try Android Services .Maybe this can not sure always running in fact ,at least this can delay more time to run.What you have to do is try to make service not be killed.
There are three ways to refer to it：
Method 1: Service binding notification bar becomes front-end service;
Method 2: AlarmManager keeps starting service;
Method 3: Start multi-process on the c layer by jni call.
Thank you @JuniorJiang
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies