anton sakharov: the risks you take when develop cross-platform apps using html5
TRANSCRIPT
![Page 1: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/1.jpg)
The risks you take when develop cross-platform apps using
HTML5
![Page 3: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/3.jpg)
Vinnytsia, UkraineKraków, Poland
![Page 4: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/4.jpg)
![Page 5: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/5.jpg)
Cross-platform app frameworks
● Apache Cordova / Adobe PhoneGap● Appcelerator Titanium● Sencha Touch● Intel XDK - runs on Cordova● IONIC - Angular-based UI framework● Xamarin - C#, not HTM5● RubyMotion - not HTML5● ...
![Page 6: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/6.jpg)
HTML5 apps
![Page 7: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/7.jpg)
Image taken from cordova.apache.org
![Page 8: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/8.jpg)
Images taken from cordova.apache.org
![Page 9: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/9.jpg)
App (HTML, CSS, JS)
Hardware
Web View
OS
HTML5 cross-platform framework
Native part of cross-platform framework
![Page 10: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/10.jpg)
Apache Cordova/Adobe PhoneGap
Images taken from cordova.apache.org
![Page 11: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/11.jpg)
Appcelerator Titanium
Images taken from cordova.apache.org
![Page 12: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/12.jpg)
Images taken from appcelerator.com
![Page 13: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/13.jpg)
![Page 14: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/14.jpg)
Write Once, Run Anywhere
Sun Microsystems about Java
![Page 15: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/15.jpg)
![Page 16: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/16.jpg)
Risks
● Framework lock-in● Compatibility● Cross-browser markup● Bugs in frameworks● Performance● Reverse Engineering
![Page 17: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/17.jpg)
Framework lock-in
![Page 18: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/18.jpg)
Your app
Hardware
Web Browser Engine (e.g. WebKit)
Core OS
3rd-party frameworks (Cordova, Titanium etc)
![Page 19: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/19.jpg)
What can you do here?
● Develop native plugins for you cross-platform framework
● Sacrifice some features of your project
![Page 20: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/20.jpg)
Compatibility
![Page 21: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/21.jpg)
![Page 22: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/22.jpg)
Few more● Back button on Android, no Back button on iOS
● Touch events different behaviour from platform to platform
● IndexedDB
● ...
![Page 23: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/23.jpg)
Image taken from caniuse.com
![Page 24: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/24.jpg)
Cross-browser markup
![Page 25: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/25.jpg)
Web Browser Engines
● WebKit (Apple Safari, Android Browser)● Blink (Chrome)● Trident (Internet Explorer)● Gecko (Firefox)● Presto (Opera)● ...
![Page 26: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/26.jpg)
![Page 27: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/27.jpg)
![Page 28: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/28.jpg)
Few options
● Test on all kind of devices you want your app to support (iPhones, iPads, Androids etc) - must have, in fact
● Use UI frameworks (e.g. IONIC)
● Use Crosswalk (increases app size and affects performance)
![Page 29: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/29.jpg)
crosswalk-project.org
![Page 30: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/30.jpg)
Bugs in frameworks
![Page 31: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/31.jpg)
App (HTML, CSS, JS)
Hardware
Web View
OS
HTML5 cross-platform framework
Native part of cross-platform framework
![Page 32: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/32.jpg)
App (we can fix bug here)
Hardware (impossible)
API (can’t fix)
Core OS (no chance)
![Page 33: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/33.jpg)
App (we can do a workaround...)
Hardware (impossible)
API (...if bug is here)
Core OS (no chance)
![Page 34: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/34.jpg)
Special case
● new iOS version is about to be released
● your framework is not ready for it● your framework has bugs related to
new iOS version
![Page 35: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/35.jpg)
This may block your app update
![Page 36: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/36.jpg)
![Page 37: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/37.jpg)
![Page 38: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/38.jpg)
What to do?
![Page 39: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/39.jpg)
Few options, all are not quite good
● refine your project requirements according to framework stable compatibilities
● postpone the release date● keep native technology developers at
hand
![Page 40: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/40.jpg)
One more...
![Page 41: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/41.jpg)
Hire experienced developers
![Page 42: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/42.jpg)
Performance
![Page 43: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/43.jpg)
● Longer user interaction response time (touches etc)
● UI rendering
● PDF rendering
● ...
HTML5 vs. Native
![Page 44: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/44.jpg)
… but nobody cares these days
you need to reduce your time-to-market if you are startup
![Page 45: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/45.jpg)
Reverse Engineering
![Page 46: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/46.jpg)
=
![Page 47: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/47.jpg)
=
![Page 48: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/48.jpg)
Cordova/PhoneGap
![Page 49: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/49.jpg)
![Page 50: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/50.jpg)
![Page 51: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/51.jpg)
![Page 52: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/52.jpg)
![Page 53: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/53.jpg)
![Page 54: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/54.jpg)
![Page 55: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/55.jpg)
![Page 56: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/56.jpg)
![Page 57: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/57.jpg)
![Page 58: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/58.jpg)
![Page 59: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/59.jpg)
What to do?
![Page 60: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/60.jpg)
Uglify your JavaScript files
![Page 61: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/61.jpg)
One more ;)
![Page 62: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/62.jpg)
Hire experienced developers
![Page 63: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/63.jpg)
![Page 64: Anton Sakharov: The risks you take when develop cross-platform apps using HTML5](https://reader031.vdocuments.mx/reader031/viewer/2022022202/587c10f51a28ab03768b68cb/html5/thumbnails/64.jpg)