-1

I'm working on an application which is changing daily and ran through adobe build using phonegap. At the moment I am using hydrate to update it but their are a number of criteria which it does not satisfy.

Does anyone know of any way I can create my own updater which can update any of the app files (including the index.html) by checking my server for update. I thought about using the file manager API but upon reading other posts it appears it can't edit any of the app files.

Does anyone know any methods to overcome this or have any comment/thoughts on security and best practices?

rene
  • 41,474
  • 78
  • 114
  • 152
user1044220
  • 269
  • 1
  • 7
  • 21
  • Why the down vote? Would love some feedback as to why, am I making a wrong approach? – user1044220 Jan 20 '14 at 15:04
  • I didn't downvote but I did vote to close as too broad but might as well as be close for looking for recommendation for off-site resources. Your question shoud include what you already tried from the posts you mentioned and explain why that didn't work. That makes your question answerable, either by a working solution or a library suggestion. – rene Jan 20 '14 at 21:15
  • Ok thanks good points – user1044220 Jan 22 '14 at 12:55

1 Answers1

0

If you are talking of an android app:

To auto update apps, you cannot access individual files such as index.html or any other files within your app.

You could instead approach it as if it is a normal apk which needs to auto update. https://stackoverflow.com/a/15932364/2715337

But as you mentioned that the update happens on a daily basis, the best way would be to let the entire index.html load from the internet and keep other files (jquery, etc) which need not be updated within the app.

Community
  • 1
  • 1
Vikram
  • 479
  • 1
  • 4
  • 14