Run Android blank white (SOLVED)


#1

Hi all.
I make an app with http request. I run it into platform android and ios.
the ios platform can run well. But my android just show blank white screen.
Anybody has a solution?
Thank you


#2

Do you have the cordova-plugin-whitelist?


#3

no i dont, i’ll try.
thank you


#4

I try to add plugin cordova-plugin-whitelist and add platform to ios and android. But there is an error :

Installing "cordova-plugin-whitelist" for ios
Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev
    at checkEngines (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:119:29)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:296:16
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:442:13)
Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev

I’ve update ios platform but just stack on version 3.8.0.
How could i update ios to 4.0.0 ?


#5

This is fine for ios. Cordova-ios 3.8 doesn’t require the whitelist plugin, so you should be fine without it. No need to update to unreleased versions of cordova.


#6

White screen usually means your app failed to startup. Use the Dev Tools in Chrome to open a debug session to your connected device. You should see the error in the console…


#7

Thank you for the info


#8

There is no error when i use chrome.


#9

Add some logging statements (console.log() or use Angular $log) so you can trace what your app is doing.


#10

i have use console.log. There is no error


#11

My point is, do you see your log statements? Does you app go through the correct states? etc etc. If it doesn’t then you will need to trace where it is failing (if at all).


#12

I see my log statements. i run it with cli ionic run android on device and it works perfectly.
But when i close the app and open it again. The blank is happen again.