sugoke
1
Hi all,
I have just joined and hope to do great things with Meteor.
I have the following issue now: Hot code push works in browser, but not in the app on device.
How can I make this work? Is there a file where I have to input a new version number of the code?
(I am testing with a deploy on meteor.com, and I have tried to reopen the app)
Thanks a lot
Michael
timw
2
How hot code push works on cordova:
- app checks for update
- app downloads all assets for new update in background
- once all assets are loaded, those get activated and the app reloads
It takes a little to do a hot code push on phone - it usually doesn’t work as fast as the hot code push on browsers.
sugoke
3
Thanks for the answer.
The thing is that I have just added one word 2 hours ago, and still nothing. Did I miss something?
Perhaps a package is missing? I have added autoupdate.
Thanks
timw
4
Have you pointed your server correctly? If you’re running the app on *.meteor.com, you should do:
meteor run ios|android --mobile-server myapp.meteor.com
delete the app on your device before doing this, otherwise it won’t work either way.
sugoke
5
Ok I got it to work now. Thanks!
So any tips on how to troubleshoot this?
My app is working fine, I can communicate with the database and run Meteor.call on the device but hot code push isn’t happening.
sugoke
7
Not really sorry.
The thing is that I was coding on Windows, then moved the files to the Mac in order to build the app. I think this made the hot code not to work.
Then I started from scratch with everything done on the Mac, and now it works directly.