Suspend app instead of exit - Is it possible?


I recall there was a flag in the config.xml back in the days that said something along the lines of:
‘ExitOnSuspend’ True/False.

Is there a similar flag to help an ionic 2 app not exit on suspend ?

Currently on android if you switch to another app or use the close button, the app exits and you have to go through the initialization all over again.

Thank you !

This sounds like a feature that would be part of Cordova, not Ionic directly.

Phonegap is a distribution of Cordova and support this exit-on-suspend only on iOS:

Thank you ! For some reason I remember or at least I thought it was a flag for both.

Thanks again.