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.
root14
October 17, 2018, 12:48pm
2
Hi
you could watch to this github issue on the camera cordova plugin.
So the plugin works on most of the devices, it works on IOS perfectly. But on android it works on some...
bug
platform: android
support
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
I didn’t get it how to solve this problem. Please help me.
I already used background service, but no use with that.
When you click on Camera in app does it ask for which app to choose for taking picture ?
If It does, i think that is the problem.
i also have this problem but never find any solution for this if anybody know any workaround please help me
No it is not asking for anything like that. I am using default camera.
dotman
January 24, 2019, 4:28pm
9
Use DATA_Url instead of File
Thanks for the reply dotman. While using DATA_URL only i am getting error.
dotman
January 26, 2019, 5:58am
11
Can you show your code snippet?
Add
<preference name="AndroidLaunchMode" value="singleTask" />
in config.xml
2 Likes