cengiz-pz / godot-android-notification-scheduler-plugin

Notification Scheduler Plugin allows scheduling of local notifications on the Android platform.
MIT License
21 stars 4 forks source link

Tapping on a notification causes the game to close and reopen #3

Closed bruce-hill closed 3 months ago

bruce-hill commented 4 months ago

When I schedule a notification, I'd really like to have the app simply regain focus instead of quitting the app and launching a new copy of the app (which is the current behavior). I believe the current behavior is caused by this line in NotificationReceiver.java which is requesting that the current task is cleared out and a new task is created.

notificationActionIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);

My ultimate goal is to use the deeplink URI with the Deeplink Plugin to be able to trigger notifications that send me to a specific place within my app, ideally without closing and relaunching the app, which is very slow on older devices.

PS- Thanks for this plugin, it's been very helpful! 😃

cengiz-pz commented 3 months ago

Hi @bruce-hill, could you please check if your issue is resolved with the latest release?

bruce-hill commented 3 months ago

Yes! The new release resolves my issue and it works great! Thanks for your work! If you have a tip jar set up somewhere, I'd be happy to kick in a little 😃