cordova-plugin-background-mode icon indicating copy to clipboard operation
cordova-plugin-background-mode copied to clipboard

is it possible to bring app to foreground when another app is already running in foreground?

Open AnupNair91 opened this issue 7 years ago • 6 comments

I need my app to come to foreground over other apps like whatsapp or Skype. Is there any way i can do that? I tried moveToForeground() but id doesn't brings up the app if another app is running

AnupNair91 avatar Nov 15 '17 07:11 AnupNair91

Hello, did you receive a solution for this, I have the same problem with the API

epatriciogh avatar Nov 17 '17 22:11 epatriciogh

I have facing this problem too. I didn't find solution with this plugin, but I use cordova-bring-to-front plugin to show app from background. And use this plugin to enable background mode.

All works fine but only on android. For IOS it is not possible to to move app to foreground and I use cordova-plugin-local-notifications

as-eugene-s avatar Nov 30 '17 17:11 as-eugene-s

cordova-bring-to-front, not works on ionic3, there any other solution?

tuliogoiania avatar Mar 17 '18 04:03 tuliogoiania

@tuliogoiania I don't know what you mean by "not works". Don't you think it's a bit vague?

Anyway, try this fork https://github.com/markeeftb/cordova-bring-to-front. It adds a package.json file (missing from the original code) and Cordova 7 requires it to install the plugin. hth

paolodina avatar Apr 16 '18 14:04 paolodina

@paolodina Thanks a lot i was trying something like this since one week ,nothing worked and your solution worked like charm....

Nousheenk avatar Mar 27 '19 07:03 Nousheenk

Hi everyone. how can make this for ios, possible or not ? What plugin do you recommend ? and Android works successfully but ios what solution is there??

santiagovasquez avatar Jan 11 '22 19:01 santiagovasquez