Reputation: 3039
I have an ionic app running on android that reloads everytime I put the app into the background and resume it? The reload is causing issues with some bluetooth devices I'm interacting with.
I know I can listen for the resume here, but not quite sure what I need to put in there to prevent the reload.
$ionicPlatform.on('resume', function(){
...
})
What can I do to prevent app reload on resume?
Upvotes: 3
Views: 2230
Reputation: 5167
It looks that you need a Cordova plugin to prevent the app from going to sleep while in background.
Upvotes: 2