简体   繁体   中英

Is it possible to update HTML/CSS/JS files in a PhoneGap app with out re-deploying?

If a user has installed my PhoneGap app is there any way to update the static files such as the HTML or CSS with out the need to re-deploy the app again? For example, when updating a web app, the developer can make a change to a CSS file on the server, and on the next page refresh the style change will be visible to the user.

I'm assuming being able to do this is unlikely due to the app needing to be packaged up and installed on the device, but I'm looking for some verification.

You could change the app to import the file externally from a server (something like <link rel="https://linktofile.com/file.css"> , which means you can change the app's style at any time without re-compiling the app.

Otherwise I am not aware of any other way.

@Stavros_S delopying a website as is suggested by Praveen Kumar is NOT best practice for mobile Apps.

Recently, Google created a new means to do what you want. It is called an Expansion File . Read this:

https://iphonedevlog.wordpress.com/2014/12/12/adding-an-android-apk-expansion-file-to-a-cordova-project/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM