Ionic app restarting after Camera Capture


#1

After capturing image and pressing tick mark, my application is restarting automatically in Moto Z play in Android Oreo. But it is working fine with any other mobiles but in some mobiles it is restarting the app.

Urgent, need solution. Please help me to solve this problem.


#2

Hi
you could watch to this github issue on the camera cordova plugin.


#3

It’s a memory problem and it’s how Android behave

I faced that problem and built a workaround using the provided Cordova lifecycle, I documented everything in https://forum.ionicframework.com/t/solved-camera-plugin-restart-app-on-android-8-1


#5

I didn’t get it how to solve this problem. Please help me.


#6

I already used background service, but no use with that.