wp7 gapmeetup

Post on 12-Nov-2014

7.864 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Adventures in Mobile development.

Mango editionMonday, 5 December, 11

PhoneGap is a hackiOS - the Early Days

Nitobi created iPhone Gap stringByEvaluatingJavascriptString()

JS->Native used window.location changes

Monday, 5 December, 11

Android

Android SDK introduced the webview.bind method

Native code called javascript with ‘javascript:’ URLs

( with issues )

Monday, 5 December, 11

Android + CallbackOverride prompt in javascript

callback server with Polling

It works

Monday, 5 December, 11

BlackBerry

Originally it didn’t seem possible

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

Monday, 5 December, 11

BlackBerry WebWorks

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

Monday, 5 December, 11

WebOS

WebOS the whole app is Javascript, so another simple shim

WebOS did a lot right; just bad timing/luck

Monday, 5 December, 11

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

WP7 Native->JS

C# can call JS

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

Monday, 5 December, 11

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

Stumbling PointsIsolatedStorage

WebStorage ( supported? )

XMLHttpRequest

Monday, 5 December, 11

Non-Optimal fixes

Panning + Zooming

The Grey Box

TouchEvents

The AppStore’s Static Analyzer

Monday, 5 December, 11

Missing in Action

WebSQL

WebGL

WebWorkers

position:fixed

Overflow:scroll

Monday, 5 December, 11

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

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

Demo Time

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

Monday, 5 December, 11

top related