So more, do you have tips to debug on device in the case where application crashes?! The tool chrome://inspect/#devices is not sufficient for app crashes…
In fact, I follow a tutorial based on Ionic 1 and AngularJS 1 and I want to make the project in Ionic @latest and Angular CLI@latest for compatibility with my device. So I have this crash problem but I don’t know how debug it.
The two <img> is from the tutorial.
Then it’s a terrible tutorial and you should run away.
This is not going to work. Read modern documentation. There is absolutely nothing useful for you if you want to make a modern Angular/Ionic app in Ionic-v1/AngularJS tutorials.
Maybe, I have not sufficient practice to judge about this code.
I’m disagree with you. For me is a good way to learn develop anything by trying to remake a old project with modern tools. You don’t follow foolishly the tutorial/guide and think about your code according modern documentation. But in this case, I am blocked because I don’t know how debug my issue.
So, after preliminary investigation, I have identified the root cause of App crash. It is the option allowEdit: true,. Why this option crashes the App, I don’t know.
However, I have another problem. After taking the photo, my App restart. I read somewhere that Android kill background application when another App get foreground. Maybe is the reason.
According to your advise (rapropos), I trying to find a tutorial/guide to use camera with Ionic 3. But I found one based on Ionic 2. I’m followed it but I have the same issue that above (Restart of App). I’m lost.