wp7 gapmeetup

16
Adventures in Mobile development. Mango edition Monday, 5 December, 11

Upload: purplecabbage

Post on 12-Nov-2014

7.864 views

Category:

Technology


3 download

DESCRIPTION

Presentation from PhoneGap meetup in the Nitobi/Adobe office on Nov. 28, 2011

TRANSCRIPT

Page 1: Wp7 gapmeetup

Adventures in Mobile development.

Mango editionMonday, 5 December, 11

Page 2: Wp7 gapmeetup

PhoneGap is a hackiOS - the Early Days

Nitobi created iPhone Gap stringByEvaluatingJavascriptString()

JS->Native used window.location changes

Monday, 5 December, 11

Page 3: Wp7 gapmeetup

Android

Android SDK introduced the webview.bind method

Native code called javascript with ‘javascript:’ URLs

( with issues )

Monday, 5 December, 11

Page 4: Wp7 gapmeetup

Android + CallbackOverride prompt in javascript

callback server with Polling

It works

Monday, 5 December, 11

Page 5: Wp7 gapmeetup

BlackBerry

Originally it didn’t seem possible

Until Dave discovered that JS cookies were observable from Native code.

Monday, 5 December, 11

Page 6: Wp7 gapmeetup

BlackBerry WebWorks

WebWorks embraces Javascript code, it becomes a first class citizen on the device.

Monday, 5 December, 11

Page 7: Wp7 gapmeetup

WebOS

WebOS the whole app is Javascript, so another simple shim

WebOS did a lot right; just bad timing/luck

Monday, 5 December, 11

Page 8: Wp7 gapmeetup

Windows Phone 7So how does WP7 do it? ScriptNotify

Calling to Native

javascript can call window.external.Notify(string)

C# code listens for the ScriptNotify event

Monday, 5 December, 11

Page 9: Wp7 gapmeetup

WP7 Native->JS

C# can call JS

this.webBrowser.InvokeScript(scriptName,string []args);

Monday, 5 December, 11

Page 10: Wp7 gapmeetup

Why Not Sooner?Mango brings IE9

finally a compliant browser

addEventListener ( no more conditional event model )

JSON built in

Array.forEach, Object.defineProperty

querySelectorAll, Canvas, SVG, ...

Monday, 5 December, 11

Page 11: Wp7 gapmeetup

Stumbling PointsIsolatedStorage

WebStorage ( supported? )

XMLHttpRequest

Monday, 5 December, 11

Page 12: Wp7 gapmeetup

Non-Optimal fixes

Panning + Zooming

The Grey Box

TouchEvents

The AppStore’s Static Analyzer

Monday, 5 December, 11

Page 13: Wp7 gapmeetup

Missing in Action

WebSQL

WebGL

WebWorkers

position:fixed

Overflow:scroll

Monday, 5 December, 11

Page 14: Wp7 gapmeetup

Persons Of Interest @Purplcabbage

My Blog: risingj.com

Abu Obeida Bakhach (Microsoft Interop Team)

Sergei Grebnov (Microsoft Sponsored)

@ColinEberhardt (First AppStore WP7 PhoneGap app!)

Monday, 5 December, 11

Page 15: Wp7 gapmeetup

There be MonstersPhoneGap is still a hack!

SDK designers are not yet considering this use-case.

We are still outlaws, operating outside their imagination, successfully!

It is still a new frontier

Monday, 5 December, 11

Page 16: Wp7 gapmeetup

Demo Time

Images from: http://en.wikipedia.org/wiki/File:Carta_Marina.jpeg

Monday, 5 December, 11