- Home /
Unity Android Send Notification after Application Quit
Hello, I have just tried the mobile notifications package to make a simple alarm-like notifications. It works perfectly when the app is active, but it doesn't send anything if I kill the app. Is there any way to keep the scheduled notification still running after the app is killed with this package? Thank you.
Answer by Develoop · Aug 12, 2020 at 12:37 PM
Hi, Did you find a solution? I have the same problem and I can't find any fix :(
The only solution that I found is to hide the application. Here is the code:
AndroidJavaObject activity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic("currentActivity");
activity.Call("moveTaskToBack" , true);
But if the user kill the application no notifications will be displayed.
Your answer
Follow this Question
Related Questions
How to make Android Notification Media Controller? 1 Answer
Disable/enable local notifications on Android and iOS 0 Answers
What are the method calls for moving left, right, and jump with the first person controller? 1 Answer
Record a video in unity on mobile (Android, IOS) 1 Answer
I can't seem to get my character to jump in my mobile app 1 Answer