Ionic's Apk does not work. White screen

2

Good morning, I've created an application on Ionic, it works perfectly when I use

ionic serve

The ionic can generate the Build without any error, however after installing the apk appears only the header and then a white screen. Has anyone ever had it and managed to resolve it?

    
asked by anonymous 03.09.2015 / 08:20

1 answer

1

There is probably some dependency on your application that is not loading and thus generating an error and stopping the app from loading properly.

If your application performs ajax requests, it is possible that it is capturing a 404 response when it attempts to execute such requests. This problem is solved by installing cordova-whitelist-plugin .

I recommend that you list the plugins of the Cordova installed in your application by typing in the terminal: cordova plugin list or ionic plugin list . Most of the cordova plugins should be registered in the app.js to be able to be loaded by ionic.

Finally, there is the option to simulate your app on an android or iOS device and use a watch to check the error log.

If your device is android just plug an android device into USB and run the command monitor which is inside the Android SDK .

If your device is iOS, just use the xCode .

    
28.09.2015 / 19:27