Skip to content

Instantly share code, notes, and snippets.

View purplecabbage's full-sized avatar
:shipit:
shippin'

Jesse MacFadyen purplecabbage

:shipit:
shippin'
View GitHub Profile

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 Visu
@purplecabbage
purplecabbage / hello-world.js
Created May 29, 2012 19:23 — forked from purdrew/helloCordova.html
Hello World Cordova
(function(win, doc){
var onDeviceReady = function() {
console.log('Cordova initialized');
doc.getElementById('infoTag').innerHTML = 'Hello world from Cordova ' + device.cordova;
}
doc.addEventListener('deviceready', onDeviceReady, true);
})(window,document);
@purplecabbage
purplecabbage / stopgap.js
Created October 6, 2011 19:42 — forked from brianleroux/stopgap.js
alunny's stopgap in gist form
(function () {
function deviceready() {
var e = document.createEvent('Events')
e.initEvent('deviceready')
document.dispatchEvent(e)
}
if (PhoneGap) {
PhoneGap.exec = function(success, fail, service, action, args){
var callbackId = service + PhoneGap.callbackId++;
if (typeof success == "function" || typeof fail == "function") {