mobile app development: going hybrid

22
Going hybrid Mobile apps with web technologies

Upload: martin-naumann

Post on 22-Nov-2014

1.396 views

Category:

Technology


0 download

DESCRIPTION

If you think about going native, there's a few things you may want to know. This presentation shows you how we at Centralway got into it and how we took it on a high, production-grade level. It's also sharing two "war stories" about things that didn't go so well along with things you should generally be aware of or avoid in the world of hybrid applications.

TRANSCRIPT

Page 1: Mobile app development: Going hybrid

Going hybridMobile apps with web technologies

Page 2: Mobile app development: Going hybrid

What’s hybrid?

Page 3: Mobile app development: Going hybrid

How do you do that?

PhoneGap

SenchaTitanium

Calatrava

Trigger.ioRhoMobileM Project

MoSync

AppFramework

Page 4: Mobile app development: Going hybrid

How do you do that?

PhoneGap

SenchaTitanium

Calatrava

Trigger.ioRhoMobileM Project

MoSync

AppFramework

Page 5: Mobile app development: Going hybrid

Woah! Wait - what?http://avgp.github.io/hybrid-strategy-picker/

Page 6: Mobile app development: Going hybrid

The 3 big secrets1. The uncanny valley

Page 7: Mobile app development: Going hybrid

The 3 big secrets2. Hybrid is different from everything

Page 8: Mobile app development: Going hybrid

The 3 big secrets3.

Page 9: Mobile app development: Going hybrid

The hitchhiker’s guideto PhoneGap

Page 10: Mobile app development: Going hybrid

TestTest often & test in Phonegap!

Page 11: Mobile app development: Going hybrid

OptimizeCaching, Minification, LocalStorage

Page 12: Mobile app development: Going hybrid

Use the forceConnection API, Battery API, Accelerometer

Page 13: Mobile app development: Going hybrid

If it’s native......there’s a PhoneGap plugin for it.

Page 14: Mobile app development: Going hybrid

War stories

Page 15: Mobile app development: Going hybrid

iOS and the iframes

<iframe src="http://example.com"></iframe><a href="http://somesite.com" target="_blank">Open</a>

Android: iframe is embedded, link opens a browseriOS - round 1: iframe opens a new browser on start.iOS - round 2: "stay-in-webview=true"

iframe is embedded, link opens in the app

Page 16: Mobile app development: Going hybrid

Android and the datepicker

The browser on Android

Page 17: Mobile app development: Going hybrid

Android and the datepicker

PhoneGap on iOS

Page 18: Mobile app development: Going hybrid

Android and the datepicker

PhoneGap on Android

Page 19: Mobile app development: Going hybrid

Android and the datepicker

What the ..??

Page 20: Mobile app development: Going hybrid

The dark side of the browser

● “Relayout” & Repaint events● HW-acceleration is magic● Bitmap grouping (webkit-transform: translateZ(0))● Compositing● Be really careful with AppCache

Page 22: Mobile app development: Going hybrid

Thank you! Questions?