title: Cordova: App restarting after using the camera
body: <p>I'm working on a mobile app using ionic framework.
  When I try to work with the cordova camera plugin (to take pictures or access the gallery) the app restarts.</p>
  
  <p>I've found many forum threads and questions here about the subject, and the most useful one was this one:
  <a href="https://stackoverflow.com/questions/8368091/phonegap-camera-restarts-the-application">PhoneGap camera restarts the application</a></p>
  
  <p>This question is 4 years old, and I think the solutions given are no longer compatible with newer version of cordova.</p>
  
  <p>Is there any new solutions to the problem? I've been stuck for 3 days with this.</p>