Hosting JS or other files NOT in the app

2 posts, 0 answers
  1. Carlos
    Carlos avatar
    69 posts
    Member since:
    Jun 2011

    Posted 23 Oct 2013 Link to this post

    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.
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 28 Oct 2013 Link to this post

    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.
Back to Top