-
Notifications
You must be signed in to change notification settings - Fork 335
Changes disappear after app restart #451
Comments
Hi @krzyhub , Could you please clarify is it Android or Ios issue? or both? Thanks, |
I have the same issue |
Hi @alexandergoncharov , |
I am having same issue with latest codepush. iOS appears to work. That said, there is an issue with iOS and the latest ionic webkit webview. The issue is with the way the webview plugin handles content loading. There is a line in the .m file that needs to be tweaked. Not sure if that's what is going on with android too, but with iOS it would just 404. Android will load it, but it doesn't seem to retain it after close. |
Just a quick follow up, I tried looking into it. I can't figure out what's going on.. It's almost like the call to load the deployment url is being ignored. Paths are the same, everything is fine.. it just seems to want to load the index from the android_assets folder regardless. |
after tow day in searching i found the problem in webview plugin after i delete it it is work fine , what i noticed is the path was localhost in device put when i delete the plugin the path of app change to fill// in android , and try it in ios and work fine also . i hope that help any one |
Did some even more digging. Looks like it's a race-condition with the ionic webview implementation. Basically what happens is that it tries to load the local file:///android_assets index.html. The ionic webview captures that, stops the load, then tells it to load the https://localhost:8080 version of it. So while it's stopping the loading and trying to navigate to the new url, it is preventing the code-pushed page from loading. |
I can confirm that without webview plugin update works, so, as davec21 said it would be a conflict between webview plugin and code-push plugin. |
Hi all, Yeah, issue in new version of
|
Works for me 👍 |
This pull request solves issue with Android and iOS: #454 |
It worked for me too.. thanks a lot @alexandergoncharov you saved my day |
@alexandergoncharov awesome! This works... wasted almost two days to this.... hope it gets fix |
Hi all, @krzyhub, @khlewesamer, @davec21, @vickydadhich, @perezb, Thanks, |
Hi all, Changes already in master and in new Cordova release. So, I'm going to close this issue for now but please feel free to reopen it if you have any issues. Thanks, |
Ran in to the same issue. I didn't use And it happened only on Android devices, not iOS. All the related package versions are:
Any advice, please? Alright, I think I have the same issue as davec21 found: cordova run the different index.html in the different path. when the app was first installed: And then the update was installed and restarted: Finally the app was resumed after we did see the changes: @alexandergoncharov Any downgrade advice about |
I update |
I rm the |
OMG, I forget to call So stupid.... No issue anymore. |
Bump! |
Hello,
After new version of app is pushed I can see that app was updated on my device after I launched it (installMode: InstallMode.IMMEDIATE). In the console I can see that everything related to installation process is fine:
Then I confirm to continue installation.
But after closing and starting app again it shows me old content, but saying that App is up to date. In console I can see that
this.codePush.getCurrentPackage()
really shows the last and proper update description.My update code is very simple:
For more, I can say that when I plug in my phone to Chrome Dev Tools and update app for the first time, then it is okay till I refresh the page. After refresh there is an information that page couldn't be loaded because of missing file:///data/user/0/io.ionic.starter/files/codepush/deploy/versions/d183f3ed36bd4c877009c18ae9a51d2e19cb0f0a9a8902606c14a419bb314f16/www/index.html
Also, there isn't any informations about rollback.
I will appreciate any help.
The text was updated successfully, but these errors were encountered: