Skip to content

Instantly share code, notes, and snippets.

@purplecabbage
Forked from jbristowe/phonegap34-wp81-notes.md
Last active August 29, 2015 14:01
Show Gist options
  • Save purplecabbage/10840b68143305ac0048 to your computer and use it in GitHub Desktop.
Save purplecabbage/10840b68143305ac0048 to your computer and use it in GitHub Desktop.

Notes: PhoneGap/Cordova, Visual Studio 2013 Update 2, and Windows Phone 8.1

Based on observations made with PhoneGap/Cordova 3.4, Visual Studio 2013 Update 2 (RTM), and Windows Phone 8.1.

  1. Projects generated via the PhoneGap or the Cordova CLI can run (unmodified) in emulators for Windows Phone 8.0 and Windows Phone 8.1
  2. Windows Phone 8.0 projects must be re-targeted to Windows Phone 8.1 for script debugging within the Windows Phone 8.1 emulator
  3. Projects generated via the PhoneGap or the Cordova CLI that are re-targeted to Windows Phone 8.1 are converted to Windows Phone Silverlight 8.1 projects
    • Windows Phone Silverlight 8.1 projects do not support script debugging in Visual Studio 2013 Update 2
  4. Projects generated via the PhoneGap or the Cordova CLI that are re-targeted to Windows Phone 8.1 compile and run, but throw an exception
  5. Windows Phone 8.1 features the (new) Windows.UI.Xaml.Controls.WebView
  6. Visual Studio 2013 Update 2 features a project type, WebView App (Windows Phone)
    • Serves as a good starting point for future PhoneGap/Cordova development for Windows Phone 8.1
    • Pros: Integrated WebView into XAML display tree, support for navigation to local content, as well as navigation, content, script events, InvokeScriptAsync and ScriptNotify are "baked" into the WebView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment