SlideShare una empresa de Scribd logo
1 de 13
Introducing
SproutCore to PhoneGap




        Michael Brooks
         @mwbrooks
        Nitobi Software
PhoneGap User
PhoneGap Developer
PhoneGap Developer



document.addEventListener(‘deviceready’, function() {
  // PhoneGap is ready
}, false);




SC.Event.add(document, ‘deviceready’, function() {
  // PhoneGap is ready
});
PhoneGap Contributor
PhoneGap JavaScript API
PhoneGap JavaScript API




navigator.geolocation.getCurrentPosition(
   function() { /* success callback */ },
   function() { /* failure callback */ }
);
PhoneGap JavaScript API




navigator.accelerometer.getCurrentAcceleration(
   function() { /* success callback */ },
   function() { /* failure callback */ }
);
PhoneGap JavaScript API



navigator.network.connection.type;
// No Network
// Ethernet
// Wifi
// Cell 2G
// Cell 3G
// Cell 4G
// Cell 2G
// Unknown
PhoneGap JavaScript API




document.addEventListener(‘backbutton’, function() {
  // Do something
}, false);
PhoneGap JavaScript API




document.addEventListener(‘menubutton’, function() {
  // Do something
}, false);
Web Standards Friendly
SproutCore with PhoneGap
github.com/mwbrooks/phonegap-sproutcore-todos

Más contenido relacionado

La actualidad más candente

sbt 0.10 for beginners?
sbt 0.10 for beginners?sbt 0.10 for beginners?
sbt 0.10 for beginners?
k4200
 
Firefox OS workshop, JSFoo, India
Firefox OS workshop, JSFoo, IndiaFirefox OS workshop, JSFoo, India
Firefox OS workshop, JSFoo, India
Robert Nyman
 

La actualidad más candente (20)

sbt 0.10 for beginners?
sbt 0.10 for beginners?sbt 0.10 for beginners?
sbt 0.10 for beginners?
 
Thomas Fuchs Presentation
Thomas Fuchs PresentationThomas Fuchs Presentation
Thomas Fuchs Presentation
 
*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...
*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...
*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...
 
7 Redux challenges
7 Redux challenges7 Redux challenges
7 Redux challenges
 
Lifthub (#rpscala 26)
Lifthub (#rpscala 26)Lifthub (#rpscala 26)
Lifthub (#rpscala 26)
 
Ride on the Fast Track of Web with Ruby on Rails- Part 2
Ride on the Fast Track of Web with Ruby on Rails- Part 2Ride on the Fast Track of Web with Ruby on Rails- Part 2
Ride on the Fast Track of Web with Ruby on Rails- Part 2
 
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
 
Building a Single Page App: One Page at a Time
Building a Single Page App: One Page at a TimeBuilding a Single Page App: One Page at a Time
Building a Single Page App: One Page at a Time
 
Lifthub (rpscala #31)
Lifthub (rpscala #31)Lifthub (rpscala #31)
Lifthub (rpscala #31)
 
The Magic of Advanced Debugging
The Magic of Advanced DebuggingThe Magic of Advanced Debugging
The Magic of Advanced Debugging
 
Dive into Play Framework
Dive into Play FrameworkDive into Play Framework
Dive into Play Framework
 
Making Django and NoSQL Play Nice
Making Django and NoSQL Play NiceMaking Django and NoSQL Play Nice
Making Django and NoSQL Play Nice
 
Reactive Java Microservices with Spring Boot and JHipster - Denver JUG 2021
Reactive Java Microservices with Spring Boot and JHipster - Denver JUG 2021Reactive Java Microservices with Spring Boot and JHipster - Denver JUG 2021
Reactive Java Microservices with Spring Boot and JHipster - Denver JUG 2021
 
The Gist of React Native
The Gist of React NativeThe Gist of React Native
The Gist of React Native
 
Direct Web Remoting : DWR
Direct Web Remoting : DWRDirect Web Remoting : DWR
Direct Web Remoting : DWR
 
Dropwizard Restful 微服務 (microservice) 初探 - JCConf TW 2014
Dropwizard Restful 微服務 (microservice) 初探 - JCConf TW 2014Dropwizard Restful 微服務 (microservice) 初探 - JCConf TW 2014
Dropwizard Restful 微服務 (microservice) 初探 - JCConf TW 2014
 
Concurrent Rendering Adventures in React 18
Concurrent Rendering Adventures in React 18Concurrent Rendering Adventures in React 18
Concurrent Rendering Adventures in React 18
 
クリーンアーキテクチャの考え方にもとづく Laravel との付き合い方 #phpconokinawa
クリーンアーキテクチャの考え方にもとづく Laravel との付き合い方 #phpconokinawaクリーンアーキテクチャの考え方にもとづく Laravel との付き合い方 #phpconokinawa
クリーンアーキテクチャの考え方にもとづく Laravel との付き合い方 #phpconokinawa
 
Don't worry be API with Slim framework and Joomla
Don't worry be API with Slim framework and JoomlaDon't worry be API with Slim framework and Joomla
Don't worry be API with Slim framework and Joomla
 
Firefox OS workshop, JSFoo, India
Firefox OS workshop, JSFoo, IndiaFirefox OS workshop, JSFoo, India
Firefox OS workshop, JSFoo, India
 

Destacado

La perdurabilidad en las empresas familiares
La perdurabilidad en las empresas familiaresLa perdurabilidad en las empresas familiares
La perdurabilidad en las empresas familiares
mariaperezgamboa
 
신기술업무프로세스핵심용어(It비지니스용어집)
신기술업무프로세스핵심용어(It비지니스용어집)신기술업무프로세스핵심용어(It비지니스용어집)
신기술업무프로세스핵심용어(It비지니스용어집)
Jay W. Choi
 
Muchalucha
MuchaluchaMuchalucha
Muchalucha
advera1
 
Rubrik Parenting Jendela Keluarga Majalah Hidayatullah
Rubrik Parenting  Jendela Keluarga Majalah Hidayatullah Rubrik Parenting  Jendela Keluarga Majalah Hidayatullah
Rubrik Parenting Jendela Keluarga Majalah Hidayatullah
MAJALAH HIDAYATULLAH
 
Bases concurso logo, fachada, pagina web
Bases concurso logo, fachada, pagina webBases concurso logo, fachada, pagina web
Bases concurso logo, fachada, pagina web
Marcelo Fernandez
 
Alexey Kasatonov
Alexey KasatonovAlexey Kasatonov
Alexey Kasatonov
prosvsports
 
Persepsi guru-tentang-buku-teks
Persepsi guru-tentang-buku-teksPersepsi guru-tentang-buku-teks
Persepsi guru-tentang-buku-teks
Felix Baskara
 

Destacado (18)

Kita Hebat
Kita Hebat Kita Hebat
Kita Hebat
 
La perdurabilidad en las empresas familiares
La perdurabilidad en las empresas familiaresLa perdurabilidad en las empresas familiares
La perdurabilidad en las empresas familiares
 
신기술업무프로세스핵심용어(It비지니스용어집)
신기술업무프로세스핵심용어(It비지니스용어집)신기술업무프로세스핵심용어(It비지니스용어집)
신기술업무프로세스핵심용어(It비지니스용어집)
 
Membuat aplikasi java web enterprise sederhana
Membuat aplikasi java web enterprise sederhanaMembuat aplikasi java web enterprise sederhana
Membuat aplikasi java web enterprise sederhana
 
Muchalucha
MuchaluchaMuchalucha
Muchalucha
 
Perrilaku terpuji
Perrilaku terpujiPerrilaku terpuji
Perrilaku terpuji
 
Rubrik Parenting Jendela Keluarga Majalah Hidayatullah
Rubrik Parenting  Jendela Keluarga Majalah Hidayatullah Rubrik Parenting  Jendela Keluarga Majalah Hidayatullah
Rubrik Parenting Jendela Keluarga Majalah Hidayatullah
 
CWT_AWARD
CWT_AWARDCWT_AWARD
CWT_AWARD
 
Bases concurso logo, fachada, pagina web
Bases concurso logo, fachada, pagina webBases concurso logo, fachada, pagina web
Bases concurso logo, fachada, pagina web
 
Let's runaway with Valadoo
Let's runaway with ValadooLet's runaway with Valadoo
Let's runaway with Valadoo
 
emediaIT - Mobility Solutions - 2011.03.01
emediaIT - Mobility Solutions - 2011.03.01emediaIT - Mobility Solutions - 2011.03.01
emediaIT - Mobility Solutions - 2011.03.01
 
Alexey Kasatonov
Alexey KasatonovAlexey Kasatonov
Alexey Kasatonov
 
Кафедра французской филологии
Кафедра французской филологииКафедра французской филологии
Кафедра французской филологии
 
Aqiqah
Aqiqah Aqiqah
Aqiqah
 
Persepsi guru-tentang-buku-teks
Persepsi guru-tentang-buku-teksPersepsi guru-tentang-buku-teks
Persepsi guru-tentang-buku-teks
 
Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...
Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...
Towards an Open Data Center with an Interoperable Network (ODIN) : Volume 2: ...
 
Kertas kerja kursus permainan tenis
Kertas kerja kursus permainan tenisKertas kerja kursus permainan tenis
Kertas kerja kursus permainan tenis
 
Inside the Millennial Mind
Inside the Millennial MindInside the Millennial Mind
Inside the Millennial Mind
 

Similar a Introducing PhoneGap to SproutCore 2

PhoneGap:你应该知道的12件事
PhoneGap:你应该知道的12件事PhoneGap:你应该知道的12件事
PhoneGap:你应该知道的12件事
longfei.dong
 
Adobe董龙飞:关于PhoneGap的12件事
Adobe董龙飞:关于PhoneGap的12件事Adobe董龙飞:关于PhoneGap的12件事
Adobe董龙飞:关于PhoneGap的12件事
yangdj
 
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W... 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Robert Nyman
 
Build Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGapBuild Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGap
Allan Huang
 
JavaScript APIs - The Web is the Platform
JavaScript APIs - The Web is the PlatformJavaScript APIs - The Web is the Platform
JavaScript APIs - The Web is the Platform
Robert Nyman
 
After max+phonegap
After max+phonegapAfter max+phonegap
After max+phonegap
yangdj
 
混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver
yangdj
 
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_badaParkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
웹데브모바일
 
WebAPIs & WebRTC - Spotify/sthlm.js
WebAPIs & WebRTC - Spotify/sthlm.jsWebAPIs & WebRTC - Spotify/sthlm.js
WebAPIs & WebRTC - Spotify/sthlm.js
Robert Nyman
 

Similar a Introducing PhoneGap to SproutCore 2 (20)

Phone gap 12 things you should know
Phone gap 12 things you should knowPhone gap 12 things you should know
Phone gap 12 things you should know
 
PhoneGap:你应该知道的12件事
PhoneGap:你应该知道的12件事PhoneGap:你应该知道的12件事
PhoneGap:你应该知道的12件事
 
Adobe董龙飞:关于PhoneGap的12件事
Adobe董龙飞:关于PhoneGap的12件事Adobe董龙飞:关于PhoneGap的12件事
Adobe董龙飞:关于PhoneGap的12件事
 
PhoneGap
PhoneGapPhoneGap
PhoneGap
 
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W... 	Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web Toolkits
 
Non Conventional Android Programming (English)
Non Conventional Android Programming (English)Non Conventional Android Programming (English)
Non Conventional Android Programming (English)
 
Non Conventional Android Programming En
Non Conventional Android Programming EnNon Conventional Android Programming En
Non Conventional Android Programming En
 
The 2016 Android Developer Toolbox [MOBILIZATION]
The 2016 Android Developer Toolbox [MOBILIZATION]The 2016 Android Developer Toolbox [MOBILIZATION]
The 2016 Android Developer Toolbox [MOBILIZATION]
 
Build Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGapBuild Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGap
 
Phone Gap
Phone GapPhone Gap
Phone Gap
 
JavaScript APIs - The Web is the Platform
JavaScript APIs - The Web is the PlatformJavaScript APIs - The Web is the Platform
JavaScript APIs - The Web is the Platform
 
After max+phonegap
After max+phonegapAfter max+phonegap
After max+phonegap
 
混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver
 
Apache Cordova: Overview and Introduction
Apache Cordova: Overview and IntroductionApache Cordova: Overview and Introduction
Apache Cordova: Overview and Introduction
 
Creating and Distributing Mobile Web Applications with PhoneGap
Creating and Distributing Mobile Web Applications with PhoneGapCreating and Distributing Mobile Web Applications with PhoneGap
Creating and Distributing Mobile Web Applications with PhoneGap
 
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_badaParkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
 
PhoneGap JavaScript API vs Native Components
PhoneGap JavaScript API vs Native ComponentsPhoneGap JavaScript API vs Native Components
PhoneGap JavaScript API vs Native Components
 
WebAPIs & WebRTC - Spotify/sthlm.js
WebAPIs & WebRTC - Spotify/sthlm.jsWebAPIs & WebRTC - Spotify/sthlm.js
WebAPIs & WebRTC - Spotify/sthlm.js
 
Native Javascript apps with Phonegap - De Keijzer
Native Javascript apps with Phonegap - De KeijzerNative Javascript apps with Phonegap - De Keijzer
Native Javascript apps with Phonegap - De Keijzer
 

Más de mwbrooks

PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
mwbrooks
 
Dawn of the Devices
Dawn of the DevicesDawn of the Devices
Dawn of the Devices
mwbrooks
 
PhoneGap Day: How to Architect for Many Screens
PhoneGap Day: How to Architect for Many ScreensPhoneGap Day: How to Architect for Many Screens
PhoneGap Day: How to Architect for Many Screens
mwbrooks
 

Más de mwbrooks (6)

PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
PhoneGap 2014 & Beyond - PhoneGap Day EU 2015 (2015-05-18)
 
Dawn of the Devices
Dawn of the DevicesDawn of the Devices
Dawn of the Devices
 
Your Browser is Your SDK
Your Browser is Your SDKYour Browser is Your SDK
Your Browser is Your SDK
 
Hello PhoneGap
Hello PhoneGapHello PhoneGap
Hello PhoneGap
 
ApacheCon 2011
ApacheCon 2011ApacheCon 2011
ApacheCon 2011
 
PhoneGap Day: How to Architect for Many Screens
PhoneGap Day: How to Architect for Many ScreensPhoneGap Day: How to Architect for Many Screens
PhoneGap Day: How to Architect for Many Screens
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Introducing PhoneGap to SproutCore 2

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n