javascript - Convert bootstrap mobile site to phonegap app -
i have mvc4 web application using bootstrap 3 , jquery. mobile design need want create native mobile application replicates mobile site like. there way convert bootstrap site phonegap application know based on html , js?
i wondering if there way of using iframe approach app load mobile site into? thing want use native application push alerts , marketing abilities.
any guidance appreciated.
thanks in advance
if mvc app spa (single page app) uses ajax extensively communicate back-end, might lucky.
first, since mvc server-side gonna have generate static html pages use in cordova app ..this shouldn't problem, go each page , save source-code html file.
also communication need ajax based .. jsonp, lot easier working, can configure cross domain communication.
and need reorganize pages , stuff compatible way cordova organizes directories , stuff.
but ..you generate static pages, make sure ajax works, , reorganize directory structure , likes.
will bit more complicated, , you'll have think of things authentication maybe, , rework code here , there, it's not impossible do.
if can dump of site work off usb drive (pure html, js, ajax), can make cordova app :-)
Comments
Post a Comment