In this talk we share challenging issues that we encountered when developing Webviews for Android and iOS. Why we think Webviews and Mobile Web are two closely related, but different problems. We will also discuss PhoneGap and how it is a game changer, but also how the best way to use it in a Hybrid App might not be the most obvious one.
Presented a short version of this talk at dotJS on 2013: https://www.youtube.com/watch?v=9xcZNBLGWsU
23. What is the web good at?
Portability
Layout, formatting text.
Delivery
Sunday, November 17, 2013
24. What is the web good at?
Portability
Share Functionality
Layout, formatting text.
Fast Prototyping
Delivery
You Control the Updates
Sunday, November 17, 2013
65. public class MyWebViewClient extends CordovaWebViewClient {
/**
Once the page has finished loading
it loads cordova in a non blocking fashion.
Note that this means that cordova
initialization is slower for 2.* clients than
it would be for 4.* clients as it happens
after the DOMContentRender event
**/
public void onPageFinished(WebView view, String url) {
view.loadUrl("javascript:" + this.readFile("cordova.js"));
super.onPageFinished(view, url)
}
}
}
Sunday, November 17, 2013