-
Notifications
You must be signed in to change notification settings - Fork 335
Ionic Webview 2 with CodePush gives white screen on boot. #486
Comments
I'm facing the same issue! White screen appears after starting the app.
|
Any thoughts on this? @alexandergoncharov |
Getting the same issues, my npm dependencies are listed below. Any update on this issue would be greatly appreciated. Thank you.
|
@Silvest89 Were you able to fork the main repo and do a workaround to get it working locally? If so could you share details on how you did this? |
You can use this repo https://github.com/atftech-artyom/cordova-plugin-code-push This is what I am using in my apps and it works. |
Here are a few of the dependencies I'm currently referencing in my
And then my
Did you update both files to point to the above repository? Do you mind sharing your package/config files? Thanks! |
@l3ender
|
@Silvest89 Thank you for the help! @atftech-artyom Thanks for your working repo. Could the fix be PRed and merged back to this repo? |
Hi all! I reproduced this issue only with 4 version of About logic from https://github.com/atftech-artyom/cordova-plugin-code-push : I'll investigate it, find issue and add supporting Thanks, |
Thanks for your reply, yes I saw that code, but it only happens with a codepush url
The initial cold install, doesn't have a CodePush URL yet. So it just skips the if statement This gets called for Ionic instead. So you should put a check if it's an Ionic WebView Engine down below in the else as well ;] You could put a check here or just put it in top function which executes this one. |
Hi @Silvest89, But I changed code like you said(just for testing put Could you please clarify does |
@alexandergoncharov I'm using the master branch of |
@alexandergoncharov Yes, I have apps in production running with that repo ;) My first thought that it probably has something to do with that the first initial url for ionic is not a file URL. So it will get eaten by last return;
Will investigate this when I get home. Another thing to note is that with Ionic Webview 3 (released recently) they got rid of the local webserver for iOS. I will investigate this as well :) |
@alexandergoncharov All ionic paths should be set with SetServerBasePath |
@Silvest89 , yeah, Thanks! |
There you go @alexandergoncharov |
@Silvest89, Thanks for info. Thanks, |
@alexandergoncharov |
Hi @Silvest89 , Thanks for providing demo project! Yeah, you are absolutely right with this fix. I opened PR for this fix: #491 |
Hi all, PR #491 was merged and already in new release. Thanks, |
Using the latest version(1.11.16) of CodePush I still get a white screen on boot. It seems it uses the file protocol and immediately gives me an empty index.html. Tested on IOS12 iPhone X Ionic 4
And after using window.location.replace('http://localhost:8080/index.html') (remote debug device in safari.
Everything works until another restart.
Everything works fine if I remove the cordova code push plugin
This is also easily reproducable in a start project.
ionic start codepush-ionic-test blank
cd codepush-ionic-test
ionic cordova plugin add cordova-plugin-code-push
ionic cordova platform add ios
ionic cordova run ios or ionic cordova emulate ios
You will get a white screen on boot. Remove the plugin and everything works.
This happens with both Ionic Web View 2 and cordova-plugin-wkwebview-engine
After further testing everything works fine if I use
https://github.com/atftech-artyom/cordova-plugin-code-push
It seems that you removed
In:
How it is currently:
#424 #454
The text was updated successfully, but these errors were encountered: