I'm attempting to build an Enyo 2 app in Windows Phone 8 app container.
I got one up and running in Visual Studio Express 2012 with the "Windows Phone HTML5 App" template, but cannot seem to resolve how to hook up the hardware back button to the webview so I can intercept it and handle it in my app, rather than watching my app just exit. Attempts to handle it via the History API pushstate were also unsuccessful. Any good way to hook backbutton up in the default HTML5 Windows Phone 8 container?
Alternatively I attempted to get this running in a PhoneGap container. But currently PhoneGap 2.2 creates a Windows Phone 7.1 app, not a Windows Phone 8 one. This seems to have odd 'rubber band' of the window, and more importantly seems to force the viewport to 768x480 and I cant seem to get my 1280x768 app running scaled correctly, despite setting @-ms-viewport
to those values.
I also attempted to use the rc1 of PhoneGap 2.3 (and also with HEAD from github.com/apache/cordova-wp8), but after successfully building, the app always immediately crashes on launch - both on Emulator and Device (Lumia 920).
Current instructions on how to get up and running in PhoneGap with Windows Phone also seem out of date:http://docs.phonegap.com/en/2.2.0/guide_getting-started_windows-phone_index.md.html
This doc refers to "CordovaStarter-x.x.x.zip" -- which doest exist in the current 2.2 download from Phonegap.com So I've used the "standalone" template and directly modified the manifest template.
And Building the Template intructs you to "Export Template ..." from Visual Studio -- but that feature doesnt exist in "Visual Studio Express 2012 for Windows Phone".