katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.76k forks source link

is there a way to open a force close app from background? #1327

Closed kennrll18 closed 7 years ago

kennrll18 commented 7 years ago

is there a way to open a force close app from background? I'm using cordova-plugin-background-mode and cordova-plugin-local-notifications.

Basically i listened to the background event and then add a listener for the local notification. Inside call back for the local notification I would like to open the app from force close.

Tawpie commented 7 years ago

When your user taps the notification in the notification shade the OS will launch your app even when it was force quit.

(spelling and grammer powered by autocorrupt)

On Jun 16, 2017, 11:19 AM -0700, Kenn Lipa notifications@github.com, wrote:

is there a way to open a force close app from background? I'm using cordova-plugin-background-mode and cordova-plugin-local-notifications. Basically i listened to the background event and then add a listener for the local notification. Inside call back for the local notification I would like to open the app from force close. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kennrll18 commented 7 years ago

Yea i get that part, but I'd like to open the app when the notification is triggered. Basically, i want to use cordova.plugins.backgroundMode.unlock() even when it's force quit.

rwillett commented 7 years ago

You can't force quite the app by clicking on the notification when the app is in the background.

You could theoretically click on the app, that will open it, and then quit it.