0

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

Community
  • 1
  • 1
engincancan
  • 2,442
  • 2
  • 28
  • 43
  • I'm not sure to understand your question... Do you want to update dynamically the pages in the www folder of your app ? – Niko Jun 05 '15 at 09:59
  • yes pretty much it is. I already know its possible but in enterprise level applicable or Apple do not allow auto updates – engincancan Jun 05 '15 at 11:45

1 Answers1

0

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.

Kenneth Li
  • 1,632
  • 1
  • 14
  • 19