Page 1 of 2

Ionic App APK installs but stops immediately when run

Posted: Tue Sep 13, 2016 1:43 pm
by Andy Parker

My Ionic app runs fine with no errors on the console when testing in the browser, and also runs fine on the Appery tester on Android.

However, when I create the APK it installs ok but fails when it attempts to run giving the error "appname has stopped", and thats it.

I've run the app in the Appery tester with Weiner debug and see that the following message appears:

"No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin."

Is this the problem? If so, how do I correct it please?

Just to add, I;ve not installed the cordova-plugin-whitelist-plugin and don't see it anywhere on the list of plugins in the Appery system....


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 6:47 am
by Serhii Kulibaba

Hello Andy,

Could you clarify have you changed anything on the Source tab?

If you did, these custom changes might cause the build to fail. Try to rollback the custom source changes and try to build the app again. Here is how to rollback custom source change: https://docs.appery.io/docs/appbuilde...

When you make changes in the Source view for a particular page, the visual editor for that page will not be updated (until you rollback the changes).


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 8:00 am
by Andy Parker

Hi Sergiy,

I can confirm I have made no source changes.
But, I started the project with the Admob Pro plugin selected through the imported cordova plug-ins section, then decided I was not going to use Admob so removed the selection.

I have found that if I reselect the Admob plugin this error goes away. (I have no reference to the plugin anywhere in my project)

So, removing this plugin seems to have altered something else.

So in summary, no source changes, just Admob Pro plugin selected, then de-selected.


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 4:18 pm
by Andy Parker

any progress on this please?


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 6:21 pm
by Illya Stepanov

Hi Andy,

Possibly you have connected another 3rd party plugin which is conflicting with your already connected Cordova plugins in the project. You can remove all the unnecessary plugins from the build and give a test on your side. We didn't encountered with such behavior with our test builds.


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 7:11 pm
by Andy Parker

Hi Illya,
As mentioned above, I've deselected the admob Pro plugin and this is when the problem occurs. No other plug-ins are present.


Ionic App APK installs but stops immediately when run

Posted: Wed Sep 14, 2016 9:09 pm
by Illya Stepanov

Have you tried removing all Cordova plugins from your app settings?


Ionic App APK installs but stops immediately when run

Posted: Thu Sep 15, 2016 6:24 am
by Andy Parker

Yes, all plug-ins removed. It's there a way to force a reset of the source? I haven't modified the source but if I can force a reset that may help.


Ionic App APK installs but stops immediately when run

Posted: Thu Sep 15, 2016 9:43 am
by Andy Parker

Just to let you know, I have deleted the Android source and selected "undo source code changes" in the hope it would solve the issue.
It has not, still crashes on startup.
Can you look into this with some urgency please as it is stopping the application from going live.


Ionic App APK installs but stops immediately when run

Posted: Thu Sep 15, 2016 10:10 am
by Illya Stepanov

Provide us with your project GUID we will take a look.