hansemannn / titanium-firebase-cloud-messaging

Use the Firebase Cloud Messaging SDK in Axway Titanium 🚀 Edit
Other
43 stars 31 forks source link

Resume backgrounded app from notifications click #150

Closed tomjakobs1 closed 1 year ago

tomjakobs1 commented 1 year ago

Would it be possible to get instructions for how to get the app to resume when clicking on a notifcation on a backgrounded app ?

Thank you :)

Tom

m1ga commented 1 year ago

Hi @tomjakobs1 ,

please use Slack https://slack.tidev.io/ or the github discussions for such question as the Issue section is mainly for bugs/issues with the module.

As for the question: It should do that automatically. If you have a notification and you click it it will start your app. If it is still active it will bring it to the front otherwise it will restart it. If you send a normal notification on Android (in comparison to a data notification) it will restart your app all the time. We don't have control over that as the system handles those notifications.

tomjakobs1 commented 1 year ago

Hello @m1ga. Sorry for that. I will make sure to do that in the future.

m1ga commented 1 year ago

No problem! Hope it works already for you. Otherwise ask in the other channels and we'll search for a solution :)