This is a migrated thread and some comments may be shown as answers.

Hosting JS or other files NOT in the app

1 Answer 44 Views
Off-Topic
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Carlos
Top achievements
Rank 1
Carlos asked on 23 Oct 2013, 10:57 PM
So with Hybrid apps being JS/HTML5/CSS3 would there be a way to host some functionality files from a server instead on packaged up on the phone?  
Let's say we want to update our core functionality of our main JS file.  Let's say we made some performance improvements and implemented some new features that don't depend on making layout changes in the main index.html file.  So instead of waiting for the lag time of the app store approval process, would we be able to host some core JS files on our servers and once the user launched the app and was connected the the internet the newest file would be served to them. 
Would this be possible? How about our CSS sheets too.  Maybe make some changes to our CSS and then that would serve it up, possibly just write the app to get the latest version and store it locally if there is a new version.  
This seems like a better solution so we can control some core features and just let the Hybrid app launch and get the latest versions of the core app files instead of putting them all on the device packaged up.

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 28 Oct 2013, 12:11 PM
Hi Carlos,

This is definitely possible and is actually the way some hybrid apps currently work. You can implement this for any asset that is loaded by the WebView like: JavaScript, HTML, CSS or images. The main thing is that you should not change the main purpose of the application as you have submitted it to the stores. You can read more about this in this article.

 

Regards,
Stefan Dobrev
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Off-Topic
Asked by
Carlos
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or