cordova-plugin-local-notifications icon indicating copy to clipboard operation
cordova-plugin-local-notifications copied to clipboard

automatic app launch

Open suhail339 opened this issue 6 years ago • 3 comments

can i launch application from background as soon as i receive notification?

suhail339 avatar Feb 19 '19 07:02 suhail339

Your app cannot make itself the foreground app on iOS, and likewise probably cannot become foreground on Android either. I am pretty certain the OS vendors believe it would be a bad user experience if another app launched while the user was doing something else. Imagine you're composing an amazing Insta and another app took over your screen... or if your phone woke itself up from sleep with a random app running.

On Android your app can do things in the background when it receives a notification.

Tawpie avatar Feb 19 '19 14:02 Tawpie

I have used this plugin instead of developing one for my own, taken from forked https://github.com/markeeftb/cordova-bring-to-front Keep in mind to install from Cordova CLI, visual studio plugin installer might create problem.

suhail339 avatar Feb 20 '19 04:02 suhail339

How is it possible to use cordova bring to front with this plugin to bring app to front when receiving a notification ???

eeerrrttty avatar Nov 17 '20 03:11 eeerrrttty