Image does not load for profile

I created an app that has profile and a profile photo in it.
in the command ionic browser application works selects the image and loads in the aplciativo in the photo gallery.
already when I generated the apk and installed on the mobile android the same does not work it opens the photo gallery but at the time I select the photo the app reinitiates, could someone help me?

Just lately I’ve noticed that on Android your app goes to the background when capturing images / opening the gallery. Sometimes it can even happen that your app is killed in the background and completely restarted after selecting an image!

Perhaps give this solution a try - basically listen to the onResume event of your app and see if you can grab the data of the image from there.