Cordova on the fly update

797 views Asked by At

Yes I know it is possible to do. But i can't see any solid example since it is very useful for Cordova Apps. There isn't any plugin so far. If something goes wrong with newer update from the site of www/ folder. I would like to update automatically. Is this against to rules of Apple or Google? Are there any solid examples to doing that? I think it should be made on native side to not effect the working logic and restart the application after install?

Notes:I saw already this and this also this

1

There are 1 answers

0
Kenneth Li On

As an alternative to what you are looking for, I hardcoded a version no. inside the index.html and on the Server side, I have a global variable 'lowest version supported'. each time the index.html connects the server, the hardcoded version is compared with the 'lowest version supported', if it is no longer supported, I freeze all functions in that client and display a message to ask the client update to newest version in the market.