cordova - what are benefits of meteor's phonegap wrapper vs a native app with a webview? -


building phonegap can flaky furstrating process. actual benefits of using phonegap layers vs. plain native app opens webview?

i understand mdg's cordova build added caching on parts of app js code since new meteor release updates whole single js file each time, wouldn't of benefit. maybe image caching? local webserver anything?

if using native apis js cordova bridge of use.

but using plain native app, access build stability, , it's trivial open webview. js bridge opens access native apis too.

there various phonegap plugins, of these wrappers around native sdks anyway, introducing nothing more leaky problems (eg getting facebook login work phonegap , meteor)

i've built native android wrapper ~1mb, uses latest chrome webview, , can extended native features easily.

i'd know more benefits of using phonegap are, since mdg put time it.

update: meteor forums discussion https://forums.meteor.com/t/cordova-benefits-vs-custom-native-wrapper/5356

meteor uses cordova wrapper amid few amendments:

  • a web server app accessed http://meteor.local instead of file://www/...
  • an autoupdater updates files server via hot code push.
  • a few modifications allow login facebook/twitter/google popup uiwebview log in better ui alternative opening browser. used bad issue.

the web server allows use typical iron routing app. can route /, /page/:id instead of index.html. makes easier develop "hybrid apps" & use uri schemes locally.

there few modifications set use app-config.js generate config.xml.

so in addition these phonegap wrapper typical meteor style app can use meteor code , packages, such http.

apart functionality same cordova. can add cordova packages meteor app using meteor add cordova:<cordova package>@<package_version>

there few interesting developments such ability use wkwebview on ios not possible on cordova due reliance on file:// urls. wkwebview uses less resources on uiwebview , gives out more performance. quite useful on mobile device.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -