Skip to content

Instantly share code, notes, and snippets.

@jbristowe
Last active August 29, 2015 14:01
Show Gist options
  • Save jbristowe/82bd3fe1ba537e1697e9 to your computer and use it in GitHub Desktop.
Save jbristowe/82bd3fe1ba537e1697e9 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.

  • Projects generated via the PhoneGap or the Cordova CLI can run (unmodified) in emulators for Windows Phone 8.0 and Windows Phone 8.1
  • Windows Phone 8.0 projects must be re-targeted to Windows Phone 8.1 for script debugging within the Windows Phone 8.1 emulator
  • 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
  • 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
  • Windows Phone 8.1 features the (new) Windows.UI.Xaml.Controls.WebView
  • 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
@purplecabbage
Copy link

Thanks for sharing this John.
I have addressed CLI retarget to 8.1 issues.
https://gist.github.com/purplecabbage/10840b68143305ac0048
apache/cordova-wp8@18ec1c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment