SlideShare a Scribd company logo
1 of 14
How PhoneGap enters in the
world of Windows Phone?
About PhoneGap
PhoneGap is an open source framework for building mobile apps using web-
technologies.
• HTML for layout ( Better yet HTML5 )
• JavaScript for accessing device functionality
• CSS for look and feel.
It's a collection of tools + a consistent cross-device API.
• Use the same JavaScript calls to access device functions.
navigator.notification.vibrate();
• Supports development for the following operating systems:
Android, iOS, Windows Phone, webOS, Windows Mobile, Symbian OS and
BlackBerry.
Requirement
Applications built with Apache Cordova/Phonegap for Windows Phone 8
will only run on Windows Phone 8 devices. If you are looking to target
both 7.5 and 8 devices, then you should be using Apache Cordova for
Windows Phone 7, which does not have all the new shiny features
included in IE10, but implements the same APIs.
Since the Android, iOS, and Windows Phone apps use the same
codebase, the usage is identical. However, a fun fact is that you can now
develop on an OS X machine and preview on a Windows Phone device.
Cross-platform, indeed!
Why Windows Phone 8?
On Windows Phone, PhoneGap is incredibly flexible. The API is
implemented inside a user-control. This means that you can easily add a
little PhoneGap to an existing WP7 app, or if you choose, you can add
Silverlight controls to your PhoneGap app.
On the other hand, till the end of 2013, usage of Windows Phone 8 (WP8)
has increased everywhere with almost 4% of global market share and 10%
of the European market. It's also important to note that Microsoft is
listening to developers and has made WP8 a legitimate mobile platform -
including making Internet Explorer 10, with its standards compliant and
performant engine, the default browser.
How PhoneGap for Windows Phone?
Method 1: Phonegap templates and Visual Studio 2012
• With this method, the provided templates are easy to use and most of the
time you can work with the graphical interface of Visual Studio 2012. One
little disadvantage is, that these templates are not compatible to Visual
Studio 2012.
• This method requires following tools at hand, to start developing your
native windows phone 8 web app and to make your app a great one:
– Phonegap on Github
– Visual Studio 2012 Pro
– Visual Studio 2012 Update 4
– Windows Phone 8 SDK
How PhoneGap for Windows Phone?
1. Get Phonegap repository with template files
Clone Phonegap repository on Github:
> git clone https://github.com/phonegap/phonegap.git
Go to windows-phone folder:
> cd Phonegaplibwindows-phone
2. Create template files
“createTemplate.bat” automatically creates template files for you.
CMD:
> createTemplates.bat
Powershell:
> start-process createTemplates.bat
How PhoneGap for Windows Phone?
3. Implementation of Phonegap template files
Copy CordovaWP7.zip and CordovaWP8.zip in
> libwindows-phone
and paste them into
> DocumentsVisual Studio 2012TemplatesProjectTemplates
That’s the trick, your
Phonegap templates for
Windows Phone 8
and Windows Phone7
are now installed.
How PhoneGap for Windows Phone?
4. Build and deploy to emulator
Make sure Windows Phone Emulator is selected in the main drop-down menu. Then
press the green play button to start debugging, or type F5.
How PhoneGap for Windows Phone?
Method 2: Phonegap-Cli and Visual Studio 2013 (preferred)
• Method 2 is for those who are used to the console and happy with the new
Phonegap cli. Another benefit is that this method is compatible with the new
Visual Studio 2013.
• For this method, following tools will help you developing your native
windows phone 8 web app and make this tutorial a great one:
-Visual Studio 2013 Pro
-Phonegap Docs
-node.js
How PhoneGap for Windows Phone?
1. Phonegap
Install the newest version of Phonegap:
> npm install -g Phonegap
Go to your existing project and create a Phonegap project in an extra folder in your project,
here it’s “/native”:
> phonegap create native
Go into the folder
> cd native
Copy your project files into the “nativewww” folder. Be sure you have no empty css or
JavaScript files in your project. Build the app within a native container
> Phonegap build wp8
How PhoneGap for Windows Phone?
2. Run the app on the emulator
To run the app on the emulator Windows Phone 8 SDK has to be installed
on your computer and then run the project into the emulator or device
> Phonegap run wp8
3. Edit and debug project
To edit and debug the Phonegap app its recommended to use Visual
Studio 2013 Pro go to your project build by Phonegap:
> cd nativeplatformswp8
Open the .sln file with Visual Studio 2013
How PhoneGap for Windows Phone?
4. Build and deploy to emulator
In Visual Studio 2013 make sure Windows Phone emulator is selected in the main drop-
down menu. Then press the green play button to start debugging, or type F5.
In Cli make sure you are in the phonegap directory, to build and install it to the emulator.
> phonegap run wp8 --emulator
> phonegap install wp8 --emulator
What you have learnt so far…
Hopefully this presentation has brought to light how easy it can be to add
that third platform to your PhoneGap app. By exploring the Windows
Phone 8 platform you are not only broadening the reach of your app, but
you are also helping to legitimize PhoneGap itself.
You now know two methods to put your web app, which is written in
JavaScript, HTML, CSS into a native Windows phone 8 Phonegap
container, so you can access your web app directly on your home screen of
the Windows phone. The good news is, that this is just the beginning. If
you are motivated and this post has awaken your curiosity, there are plenty
things you can learn.
How to build PhoneGap App for Windows Phone?

More Related Content

What's hot

WINDOWS PHONE APPS IN C++
WINDOWS PHONE APPS IN C++WINDOWS PHONE APPS IN C++
WINDOWS PHONE APPS IN C++DotNetCampus
 
Windows Phone 8 Aspires Becoming A Trendsetter
Windows Phone 8 Aspires Becoming A TrendsetterWindows Phone 8 Aspires Becoming A Trendsetter
Windows Phone 8 Aspires Becoming A Trendsettersqueamishlexico02
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comBaileya126
 
Publish a Windows 10 Game with Construct 2
Publish a Windows 10 Game with Construct 2Publish a Windows 10 Game with Construct 2
Publish a Windows 10 Game with Construct 2Shahed Chowdhuri
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.comDavisMurphyB33
 
CIS 170 Education Specialist / snaptutorial.com
CIS 170  Education Specialist / snaptutorial.comCIS 170  Education Specialist / snaptutorial.com
CIS 170 Education Specialist / snaptutorial.comMcdonaldRyan138
 
Cis 170 Education Organization -- snaptutorial.com
Cis 170   Education Organization -- snaptutorial.comCis 170   Education Organization -- snaptutorial.com
Cis 170 Education Organization -- snaptutorial.comDavisMurphyB99
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.comHarrisGeorg51
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal appssonia merchant
 
Windows Phone Apps Development overview
Windows Phone Apps Development overviewWindows Phone Apps Development overview
Windows Phone Apps Development overviewPruthvi Reddy
 
Publish a Windows 10 Game with Unity
Publish a Windows 10 Game with UnityPublish a Windows 10 Game with Unity
Publish a Windows 10 Game with UnityShahed Chowdhuri
 
CIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.comCIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.comagathachristie208
 
CIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.comCIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.comwilliamwordsworth11
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comclaric131
 

What's hot (20)

WINDOWS PHONE APPS IN C++
WINDOWS PHONE APPS IN C++WINDOWS PHONE APPS IN C++
WINDOWS PHONE APPS IN C++
 
Firefox OS
Firefox OSFirefox OS
Firefox OS
 
Windows Phone 8 Aspires Becoming A Trendsetter
Windows Phone 8 Aspires Becoming A TrendsetterWindows Phone 8 Aspires Becoming A Trendsetter
Windows Phone 8 Aspires Becoming A Trendsetter
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.com
 
Publish a Windows 10 Game with Construct 2
Publish a Windows 10 Game with Construct 2Publish a Windows 10 Game with Construct 2
Publish a Windows 10 Game with Construct 2
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.com
 
CIS 170 Education Specialist / snaptutorial.com
CIS 170  Education Specialist / snaptutorial.comCIS 170  Education Specialist / snaptutorial.com
CIS 170 Education Specialist / snaptutorial.com
 
Cis 170 Education Organization -- snaptutorial.com
Cis 170   Education Organization -- snaptutorial.comCis 170   Education Organization -- snaptutorial.com
Cis 170 Education Organization -- snaptutorial.com
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.com
 
Dot net universal apps
Dot net universal appsDot net universal apps
Dot net universal apps
 
Mobile development
Mobile developmentMobile development
Mobile development
 
Windows Phone Apps Development overview
Windows Phone Apps Development overviewWindows Phone Apps Development overview
Windows Phone Apps Development overview
 
Windows phonev
Windows phonevWindows phonev
Windows phonev
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
What are the Benefits of Learning HTML code?
What are the Benefits of Learning HTML code?What are the Benefits of Learning HTML code?
What are the Benefits of Learning HTML code?
 
Visual studio code
Visual studio codeVisual studio code
Visual studio code
 
Publish a Windows 10 Game with Unity
Publish a Windows 10 Game with UnityPublish a Windows 10 Game with Unity
Publish a Windows 10 Game with Unity
 
CIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.comCIS 170 Redefined Education--cis170.com
CIS 170 Redefined Education--cis170.com
 
CIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.comCIS 170 Education for Service--cis170.com
CIS 170 Education for Service--cis170.com
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.com
 

Similar to How to build PhoneGap App for Windows Phone?

Dev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideDev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideTrioBlack Trioblack
 
Porting iPhone Apps to Windows Phone 7
Porting iPhone Apps to Windows Phone 7Porting iPhone Apps to Windows Phone 7
Porting iPhone Apps to Windows Phone 7Wes Yanaga
 
Phone gap in android technology
Phone gap in android technologyPhone gap in android technology
Phone gap in android technologyVikrant Thakare
 
Developing Mobile Application using Phonegap
Developing Mobile Application using PhonegapDeveloping Mobile Application using Phonegap
Developing Mobile Application using PhonegapFahim Abdullah
 
An introduction to Apache Cordova
An introduction to Apache CordovaAn introduction to Apache Cordova
An introduction to Apache Cordovavaluebound
 
PhoneGap Session at Multi-Mania.be 2013
PhoneGap Session at Multi-Mania.be 2013PhoneGap Session at Multi-Mania.be 2013
PhoneGap Session at Multi-Mania.be 2013Mihai Corlan
 
Benefits of PhoneGap for Mobile App Development - Appzure
Benefits of PhoneGap for Mobile App Development - AppzureBenefits of PhoneGap for Mobile App Development - Appzure
Benefits of PhoneGap for Mobile App Development - AppzureAppzure -Mobile App Development
 
The Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdfThe Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdfMoon Technolabs Pvt. Ltd.
 
Windows phone 7 launch ppt
Windows phone 7 launch pptWindows phone 7 launch ppt
Windows phone 7 launch pptaitrichtech
 
Windowsphone7
Windowsphone7Windowsphone7
Windowsphone7yuvaraj72
 
Top Cross Platform Mobile App Development Frameworks
Top Cross Platform Mobile App Development FrameworksTop Cross Platform Mobile App Development Frameworks
Top Cross Platform Mobile App Development FrameworksWDP Technologies
 
Microsoft hackathon presentation 2013.02.15
Microsoft hackathon presentation 2013.02.15Microsoft hackathon presentation 2013.02.15
Microsoft hackathon presentation 2013.02.15Andrew Smith
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 

Similar to How to build PhoneGap App for Windows Phone? (20)

Dev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideDev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guide
 
PhoneGap
PhoneGapPhoneGap
PhoneGap
 
Porting iPhone Apps to Windows Phone 7
Porting iPhone Apps to Windows Phone 7Porting iPhone Apps to Windows Phone 7
Porting iPhone Apps to Windows Phone 7
 
Phone gap
Phone gapPhone gap
Phone gap
 
Mobile app developer
Mobile app developerMobile app developer
Mobile app developer
 
Phone gap in android technology
Phone gap in android technologyPhone gap in android technology
Phone gap in android technology
 
Presentation[1]
Presentation[1]Presentation[1]
Presentation[1]
 
Developing Mobile Application using Phonegap
Developing Mobile Application using PhonegapDeveloping Mobile Application using Phonegap
Developing Mobile Application using Phonegap
 
An introduction to Apache Cordova
An introduction to Apache CordovaAn introduction to Apache Cordova
An introduction to Apache Cordova
 
PhoneGap Session at Multi-Mania.be 2013
PhoneGap Session at Multi-Mania.be 2013PhoneGap Session at Multi-Mania.be 2013
PhoneGap Session at Multi-Mania.be 2013
 
Benefits of PhoneGap for Mobile App Development - Appzure
Benefits of PhoneGap for Mobile App Development - AppzureBenefits of PhoneGap for Mobile App Development - Appzure
Benefits of PhoneGap for Mobile App Development - Appzure
 
The Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdfThe Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdf
 
Windows phone 7 launch ppt
Windows phone 7 launch pptWindows phone 7 launch ppt
Windows phone 7 launch ppt
 
Computer project work
Computer project workComputer project work
Computer project work
 
What is PhoneGap?
What is PhoneGap?What is PhoneGap?
What is PhoneGap?
 
Windowsphone7
Windowsphone7Windowsphone7
Windowsphone7
 
Top Cross Platform Mobile App Development Frameworks
Top Cross Platform Mobile App Development FrameworksTop Cross Platform Mobile App Development Frameworks
Top Cross Platform Mobile App Development Frameworks
 
Microsoft hackathon presentation 2013.02.15
Microsoft hackathon presentation 2013.02.15Microsoft hackathon presentation 2013.02.15
Microsoft hackathon presentation 2013.02.15
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 

More from MobilePundits

The Essentials of Mobile App Testing and Monitoring
The Essentials of Mobile App Testing and MonitoringThe Essentials of Mobile App Testing and Monitoring
The Essentials of Mobile App Testing and MonitoringMobilePundits
 
How to make your app successful with mobile app testing?
How to make your app successful with mobile app testing?How to make your app successful with mobile app testing?
How to make your app successful with mobile app testing?MobilePundits
 
How Social Media Helps in Mobile App Success?
How Social Media Helps in Mobile App Success?How Social Media Helps in Mobile App Success?
How Social Media Helps in Mobile App Success?MobilePundits
 
How Mobile App Plays Major Role in Business Success?
How Mobile App Plays Major Role in Business Success?How Mobile App Plays Major Role in Business Success?
How Mobile App Plays Major Role in Business Success?MobilePundits
 
Mobile Development With Android
Mobile Development With AndroidMobile Development With Android
Mobile Development With AndroidMobilePundits
 
Cross-Platform App Development in C#
Cross-Platform App Development in C#Cross-Platform App Development in C#
Cross-Platform App Development in C#MobilePundits
 
HTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web DevelopmentHTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web DevelopmentMobilePundits
 
Android & iOS Marketplace in Development Era
Android & iOS Marketplace in Development EraAndroid & iOS Marketplace in Development Era
Android & iOS Marketplace in Development EraMobilePundits
 
Smartphone- Revolutionary Application Development in Australia
Smartphone- Revolutionary Application Development in AustraliaSmartphone- Revolutionary Application Development in Australia
Smartphone- Revolutionary Application Development in AustraliaMobilePundits
 

More from MobilePundits (9)

The Essentials of Mobile App Testing and Monitoring
The Essentials of Mobile App Testing and MonitoringThe Essentials of Mobile App Testing and Monitoring
The Essentials of Mobile App Testing and Monitoring
 
How to make your app successful with mobile app testing?
How to make your app successful with mobile app testing?How to make your app successful with mobile app testing?
How to make your app successful with mobile app testing?
 
How Social Media Helps in Mobile App Success?
How Social Media Helps in Mobile App Success?How Social Media Helps in Mobile App Success?
How Social Media Helps in Mobile App Success?
 
How Mobile App Plays Major Role in Business Success?
How Mobile App Plays Major Role in Business Success?How Mobile App Plays Major Role in Business Success?
How Mobile App Plays Major Role in Business Success?
 
Mobile Development With Android
Mobile Development With AndroidMobile Development With Android
Mobile Development With Android
 
Cross-Platform App Development in C#
Cross-Platform App Development in C#Cross-Platform App Development in C#
Cross-Platform App Development in C#
 
HTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web DevelopmentHTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web Development
 
Android & iOS Marketplace in Development Era
Android & iOS Marketplace in Development EraAndroid & iOS Marketplace in Development Era
Android & iOS Marketplace in Development Era
 
Smartphone- Revolutionary Application Development in Australia
Smartphone- Revolutionary Application Development in AustraliaSmartphone- Revolutionary Application Development in Australia
Smartphone- Revolutionary Application Development in Australia
 

Recently uploaded

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Recently uploaded (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 

How to build PhoneGap App for Windows Phone?

  • 1. How PhoneGap enters in the world of Windows Phone?
  • 2. About PhoneGap PhoneGap is an open source framework for building mobile apps using web- technologies. • HTML for layout ( Better yet HTML5 ) • JavaScript for accessing device functionality • CSS for look and feel. It's a collection of tools + a consistent cross-device API. • Use the same JavaScript calls to access device functions. navigator.notification.vibrate(); • Supports development for the following operating systems: Android, iOS, Windows Phone, webOS, Windows Mobile, Symbian OS and BlackBerry.
  • 3. Requirement Applications built with Apache Cordova/Phonegap for Windows Phone 8 will only run on Windows Phone 8 devices. If you are looking to target both 7.5 and 8 devices, then you should be using Apache Cordova for Windows Phone 7, which does not have all the new shiny features included in IE10, but implements the same APIs. Since the Android, iOS, and Windows Phone apps use the same codebase, the usage is identical. However, a fun fact is that you can now develop on an OS X machine and preview on a Windows Phone device. Cross-platform, indeed!
  • 4. Why Windows Phone 8? On Windows Phone, PhoneGap is incredibly flexible. The API is implemented inside a user-control. This means that you can easily add a little PhoneGap to an existing WP7 app, or if you choose, you can add Silverlight controls to your PhoneGap app. On the other hand, till the end of 2013, usage of Windows Phone 8 (WP8) has increased everywhere with almost 4% of global market share and 10% of the European market. It's also important to note that Microsoft is listening to developers and has made WP8 a legitimate mobile platform - including making Internet Explorer 10, with its standards compliant and performant engine, the default browser.
  • 5. How PhoneGap for Windows Phone? Method 1: Phonegap templates and Visual Studio 2012 • With this method, the provided templates are easy to use and most of the time you can work with the graphical interface of Visual Studio 2012. One little disadvantage is, that these templates are not compatible to Visual Studio 2012. • This method requires following tools at hand, to start developing your native windows phone 8 web app and to make your app a great one: – Phonegap on Github – Visual Studio 2012 Pro – Visual Studio 2012 Update 4 – Windows Phone 8 SDK
  • 6. How PhoneGap for Windows Phone? 1. Get Phonegap repository with template files Clone Phonegap repository on Github: > git clone https://github.com/phonegap/phonegap.git Go to windows-phone folder: > cd Phonegaplibwindows-phone 2. Create template files “createTemplate.bat” automatically creates template files for you. CMD: > createTemplates.bat Powershell: > start-process createTemplates.bat
  • 7. How PhoneGap for Windows Phone? 3. Implementation of Phonegap template files Copy CordovaWP7.zip and CordovaWP8.zip in > libwindows-phone and paste them into > DocumentsVisual Studio 2012TemplatesProjectTemplates That’s the trick, your Phonegap templates for Windows Phone 8 and Windows Phone7 are now installed.
  • 8. How PhoneGap for Windows Phone? 4. Build and deploy to emulator Make sure Windows Phone Emulator is selected in the main drop-down menu. Then press the green play button to start debugging, or type F5.
  • 9. How PhoneGap for Windows Phone? Method 2: Phonegap-Cli and Visual Studio 2013 (preferred) • Method 2 is for those who are used to the console and happy with the new Phonegap cli. Another benefit is that this method is compatible with the new Visual Studio 2013. • For this method, following tools will help you developing your native windows phone 8 web app and make this tutorial a great one: -Visual Studio 2013 Pro -Phonegap Docs -node.js
  • 10. How PhoneGap for Windows Phone? 1. Phonegap Install the newest version of Phonegap: > npm install -g Phonegap Go to your existing project and create a Phonegap project in an extra folder in your project, here it’s “/native”: > phonegap create native Go into the folder > cd native Copy your project files into the “nativewww” folder. Be sure you have no empty css or JavaScript files in your project. Build the app within a native container > Phonegap build wp8
  • 11. How PhoneGap for Windows Phone? 2. Run the app on the emulator To run the app on the emulator Windows Phone 8 SDK has to be installed on your computer and then run the project into the emulator or device > Phonegap run wp8 3. Edit and debug project To edit and debug the Phonegap app its recommended to use Visual Studio 2013 Pro go to your project build by Phonegap: > cd nativeplatformswp8 Open the .sln file with Visual Studio 2013
  • 12. How PhoneGap for Windows Phone? 4. Build and deploy to emulator In Visual Studio 2013 make sure Windows Phone emulator is selected in the main drop- down menu. Then press the green play button to start debugging, or type F5. In Cli make sure you are in the phonegap directory, to build and install it to the emulator. > phonegap run wp8 --emulator > phonegap install wp8 --emulator
  • 13. What you have learnt so far… Hopefully this presentation has brought to light how easy it can be to add that third platform to your PhoneGap app. By exploring the Windows Phone 8 platform you are not only broadening the reach of your app, but you are also helping to legitimize PhoneGap itself. You now know two methods to put your web app, which is written in JavaScript, HTML, CSS into a native Windows phone 8 Phonegap container, so you can access your web app directly on your home screen of the Windows phone. The good news is, that this is just the beginning. If you are motivated and this post has awaken your curiosity, there are plenty things you can learn.