I get a black screen when running my app in ios emulator or ios device. But it works fine in chrome/safari or on an Android device.
I get no errors in either xcode or safari debugger. If I console.log in $ionicPlatform.ready I can see it. But when I console.log in the controller it doesnt log it (I can see it if running in chrome/android though).
The app worked fine until I updated xcode to 6.1 and cordova to 4.0, Ive also updated ios-sim to 3.0 without success. Im using ionic beta13.
Ive tried to add and remove platforms/plugins 100 times
Please help! Ive spend 20h+ to fix this without success…
The problem seems to be that I had an empty view (a html-file with nothing inside) set as templateUrl in the state that is first loaded. When I added <ion-view></ion-view> to the file it works in the iOS emulator and device.
Is this suppose to happen? or is it a bug?! (I guess its a cordova error and not ionic?)
Other people seems to have had the same problem, I wonder if it was because of this to:
The controller wasn’t executed so I got a black screen.
In my setup the “start view” HTML file was empty (not the abstract one). I think I got the same problem with a new project.
But I’ve solved it so its alright now
(If you think it’s a ionic bug I could make a project for you to show the problem?)
@munyanyika I was having this issue since last night in the ios emulator. I fixed it by adding a “./” in front of my template url in my ui-router state definition.
OK, after several hours of frustration, I found my issue. Hopefully this helps someone. Basically, the .js include inside of index.html was capitalized but the file was not. In Safari on my mac this was OK, on my iOS device, not so much. Fixing that cleared up my issues. Now onto the next issue, ha ha.
I was having this issue since last night in the ios emulator. I fixed it by adding a “./” in front of my template url in my ui-router state definition.