Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3.x] [cordova/android] revert to last good known version always reverts to initial bundle #7241

Closed
wojtkowiak opened this issue Jun 17, 2016 · 10 comments

Comments

@wojtkowiak
Copy link
Contributor

wojtkowiak commented Jun 17, 2016

There should be else I guess:
https://github.com/meteor/cordova-plugin-meteor-webapp/blob/master/src/android/WebAppLocalServer.java#L324

iOS version to compare:
https://github.com/meteor/cordova-plugin-meteor-webapp/blob/master/src/ios/WebAppLocalServer.swift#L297

Also it seems that no test case covers this, however I was not able to run the tests at all, some quick note about how to run them would be useful meteor/cordova-plugin-meteor-webapp#8

If you need repro, let me know.

@laosb
Copy link
Contributor

laosb commented Jun 18, 2016

Ah, this is an inconsistent between docs and code (or between platforms). So the best fix might be fixing that .java, not fixing both .swift and .md then. Hope someone can look into it.

@wojtkowiak
Copy link
Contributor Author

Well there should be just else imho. There is nothing afaik that could prevent us on android from falling to last known good version.
I can make a fix for that and add some test cases but I need some help on how to run the tests in the cordova plugin.

@wilau2
Copy link

wilau2 commented Aug 14, 2016

Is there any updates on this issue ? @wojtkowiak

@wojtkowiak
Copy link
Contributor Author

@wilau2 I would be happy to fix but I do not have time to struggle (meteor/cordova-plugin-meteor-webapp#8) with running the tests. If somebody - maybe @martijnwalraven could give me hints on how to run them - then I can do a PR.

@wilau2
Copy link

wilau2 commented Aug 18, 2016

@wojtkowiak We made the change locally in our project and push a new version of our app on the playstore hot code push now seems to work on android on the newest version of the app.

This is an important issue that should not be taken lightly for application in production.
Hot code push is a larde advantage with meteor and you are loosing it if the code keeps reverting to the first version of the code pushed on the app/play store.

@jackkav
Copy link
Contributor

jackkav commented Sep 14, 2016

Also made the change locally can also confirm, appears to fix the revert to initial on android.

@jackkav
Copy link
Contributor

jackkav commented Sep 18, 2016

Submitted a PR with the change, seems like something which is easy to reason about considering the comments and the logic in the swift code. Should be a really easy merge decision. meteor/cordova-plugin-meteor-webapp#14

@wojtkowiak
Copy link
Contributor Author

Closing, since this was fixed here meteor/cordova-plugin-meteor-webapp#14

@kakadais
Copy link

This happnes on my METEOR@1.10.2 App.
Do I miss something ?

@filipenevola
Copy link
Collaborator

Please open a new issue if that is the case.

@meteor meteor locked as resolved and limited conversation to collaborators Sep 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants