startForeground() causing problems with cordova

It seems your having an issue surrounding your apps life cycle. When you swipe of or forcefully close the app, the apps process is killed so when restarting if you had not saved dependent objects or variables in the state bundle they will come back as null because the activity is assuming those things are available. Can you paste the code you have in the onCreate() am guessing thats where your defining cordova.

Leave a Comment

tech