Ionic View showing blank screen with iPhone 5, but not with Android

Hi,

I uploaded my app to ionic.io and successfully executed on an Android phone using the Ionic View app. When doing the same thing with the iPhone, I have a white screen and nothing else.

Any clue what could cause that issue?

Thanks

Same issue… works on android but on ios im getting white screen. @icarus_31 were you able to solve it?

Hi @royip.

No, I haven’t find a solution. The problem that I have is I don’t have an iPhone, so it is hard to test things to see which part of my code is no more working on the iphone when using the Ionic View.

Have you tried an Ionic template and see if it is working?

My thought about it is maybe are some Cordova calls that I am doing. Maybe some are not supported in Ionic View?

I had the same problem and it was due to a bug in cordova-ios. The deviceready would sometimes never be called. See https://github.com/apache/cordova-ios/pull/229

The fix is to update cordova to the latest:

package.json

"cordova": "^6.3.0",

config.xml

<engine name="ios" spec="~4.2.0"/>

Hi @jasonwaters, very nice of you to share it with us.

Would you mind to tell me in which section (dependencies, devDependencies, other?) you put the “cordova” line? I don’t have any in my current package.json!

Thanks

Mine is in dependencies. You are probably using a globally installed one. If that’s the case you should be able to update it with:

npm install -g cordova@6.3.0