lundi 23 mai 2016

Updating a full client side web-application running on an android device with GoogleDrive

What I have is a "full client side web-app". That means I have a folder with an application written in HTML & Javascript. This application has been made for android devices. So when you're on the android device : you just have to go on this folder, click on the file 'launcher.html' (let's name it like that) - The default browser opens and you can browse the application (which is basically an offline website). Very convenient.

The probleme is the following : This application is finished and I have to create something like an "auto update". Everytime a page is modified, it needs to be modified on the android device (if internet is running of course) instead of connecting it to the computer to replace the old application folder.

What I tried is putting the application on a cloud. It sounds like the perfect solution since GoogleDrive is already installed on the android device. I put all the files on a google drive, I linked the android device to the same google account. Probleme is : update is working, of course. But when I click on the 'launcher.html' all the links are leading nowhere. I can visit the pages one by one, but it is completly impossible to browse the application, since all the links aren't working at all. You can try it at home : Go on your Google Drive folder (not the one online, because you cannot open an HTML file), create 2 html files. Just create a href="2nd_file" on the first file. After that go to your Google Drive folder and try to go to your 2nd file thought the 1st file. You'll see that's impossible the link is not working.

Do you have any idea why ? And any idea of how I can set an "auto update" thanks to any cloud, software or other ? (It is just for android device)

Thanks a lot for all your attention and sorry for my english !




Aucun commentaire:

Enregistrer un commentaire