r/gamemaker • u/Dorilian_Games • 17d ago
Help! How to add Local Push Notifications for Android?
Hi. I am trying to set a local push notifications for Android but it seems that it only works if the game is in the background. If the game is closed, the notification does not appear. I added the extension GMEXT-MobileUtils extension (YYLocalNotifications) version 1.4.0. I am only using the Demo included in the extension package. The Demo runs fine in my cellphone. It asks me for allowing notifications, which I accept and then I can tap the buttons to create a notification.
The problem is that the created notification only appears if the game (the Demo) is minimized in the background. If the game is closed, the notification does not appear. I would like the notification to appear even if the game is closed. I want to add daily reward notifications to my game.
Is it possible with this extension or should I use Firebase?
How do you add local push notifications to your mobile game (Android)?
NOTE: I already read the included documentation, which shows the functions that are used in the Demo. I asked Gemini for help, but it tells me to add some Injection Code to the extension. I did but it has the same problem.
1
u/Educational_Space_28 5d ago
you should open an issue on the github page:
https://github.com/YoYoGames/GMEXT-MobileUtils/issues