* PhoneGap Desktop
Posted on April 20th, 2010 by Dave Johnson. Filed under phonegap.
So if PhoneGap was running on the desktop, what would you call it? Well I have not come up with a good name yet but after a few nights of hacking we threw together a version of PhoneGap for Mac OS http://github.com/shazron/phonegap-mac and a version for Windows http://github.com/davejohnson/phonegap-windows.
@shazron has implemented the sound API on the Mac version and I did Geolocation on the Windows version using a simple GeoIP lookup.
Check it out, write some code, and let us know what you think!
For the Windows version I have used the awesome WebKit .NET project written by Peter Nelson. If you use the Visual Studio 2008 solution file, you will have to download the source or binary versions of WebKit .NET and setup the references correctly. I have so far used the 0.3 release of WebKit .NET. It is pretty cool being able to write a native Windows app (or Mac OS) in Canvas using all free and open source code
One other caveat on the Windows side is that you might need to install some Visual Studio C++ redistributables for building it … check the WebKit .NET forum on SourceForge for all the details.
8 Responses to “PhoneGap Desktop”
Leave a Reply
Recent Posts
- Mobile Geolocation Implementations
- PhoneGap Native Bridge
- PhoneGap and BlackBerry OS 6
- BlackBerry JavaScript Oddities
- JavaScript Event Merging
Archives
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005

April 20th, 2010 at 7:24 am
Whohoo! This is cool. You should do a video overview of those.
April 20th, 2010 at 8:14 am
Yeah, this is very cool !
So now, our phonegap ipad applications can also run on a PC or a MAC.
I was thinking about adapting my phonegap apps to Flex / AIR (evil, I know i know…), beacause Flex also embed webkit.
But your solution looks really better.
I will test it when I have free time. DO you know if it’s support client database (sqlite) and all the fancy CSS3 transition ?
April 20th, 2010 at 8:25 am
@sam I have not checked on SQLite and CSS3 as of yet. I would bet they both do work though … let me know when you find out!
April 20th, 2010 at 8:46 am
@sam yes CSS transitions appear to work! window.openDatabase is there but is returning null at the moment … would be easy to fix up with PhoneGap though!
April 20th, 2010 at 10:11 am
So cool. I was thinking of this just two nights ago for a new project I’m looking at!
I’ll take a closer look (though it may be a while).
April 29th, 2010 at 8:36 am
Really cool - I got it to build and run, but only after commenting out line 39 in phonegap.cs (”this.browser.InvokeScript(response);”). WebKit.WebKitBrowser doesn’t appear to have this method, and some googling seemed to indicate external script invocation is MIA from WebKit.NET. So not sure how this could could have possibly compiled, although not being a C# guy nor experienced with webkit I may well be missing something obvious. Of course without this call the “gap:” URLs won’t work, and they are kind of the whole point. Any tips would be much appreciated.
May 4th, 2010 at 10:08 am
@bill good point… I need to look into the licensing details for WebKit.NET and will include the updated source where I implemented the InvokeScript method!
June 24th, 2010 at 10:14 am
Just checking back - would love to leverage PG-Desktop esp. if it’s going to get “real”. Feel free to email me the InvokeScript source privately, and/or perhaps I could help investigate the licensing details.