m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

about:blank on ios device #84

Closed tartinesKiller closed 5 years ago

tartinesKiller commented 5 years ago

Device is an iPhone 5s, running ios 12.3.1 Cordova 9.0.0 (cordova-lib@9.0.1) Occured on an existing project, so I tried on a brand new project by doing

vue create test
cd test
vue add cordova

When running script cordova-serve-ios, no build errors or whatsoever, the app starts on the device, then nothing, just a blank screen. Looking in the devtools of Safari reveal no errors at all, and the document is empty (only html and body tags, with no attribute). Running in an emulator gives the same behaviour. However, if I build the app for production mode, it just works fine. Browser platform is running fine too. It seems like the debug html isn't being copied properly in the ios app I will try to investigate further, I can provide any additional informations if needed

Thanks in advance.

m0dch3n commented 5 years ago

a blank screen usually means vue is not booting and mounting the app to the div...

it's a bit strange, that this happens with a default vue app, without modifications etc...

or did you add maybe other plugins who have non working code? if so, try to transpile them correctly

tartinesKiller commented 5 years ago

Thanks for the answer That's what I thought first, so I tried on a new project, with no other plugins / packages (at least not added by myself) than this one. The "Debugger" tab of the devtools shows no code other than about:blank (which fails to load) I can make a repro repo if you wish

m0dch3n commented 5 years ago

so your cordova's webview isn't pointing to your devserver? make sure you are on the same network etc, and that your config.xml got modified to allow external connections

tartinesKiller commented 5 years ago

Seems like that indeed, device is on the same network, dev server is running (I can access the app with Safari on the device) You mean the config.xml in src-cordova/www?

m0dch3n commented 5 years ago

no, I think it was another path for IOS, but I don't remember by heart...

The path is constructed in the plugin code

Anyway, I think your problem is more related to your specific environment, and not a general problem, where I can help a lot...

So good luck, but I think I can't help more at this point

tartinesKiller commented 5 years ago

Thanks for your help anyway, if I manage to fix it I'll update the issue, if anybody encounter the same error Thanks again

m0dch3n commented 5 years ago

thx