Search code examples
iosmacoscordovamac-app-store

Phonegap like platform for Mac App Store?


I'm using phonegap to run my HTML/JS code in a native app for iOS. Is there any way to do this on the Mac for inclusion in the Mac App Store? Or just platform that allows me to run HTML/JS in a native app wrapper?

So far the only thing I've seen is phonegap-mac but I'm not entirely sure how to use it:

https://github.com/phonegap/phonegap-mac


Solution

  • Phonegap-mac hasn't seen any work in a while. Perhaps try MacGap (https://github.com/maccman/macgap), which is a fork and is still being actively developed.

    UPDATE 2014-03-18: MacGap hasn't seen a lot of work recently either.

    For my latest HTML5 Mac App Store app, I used Cordova http://cordova.apache.org, as I think long term that is now the better solution.

    There is a cordova-osx version which can generate a OSX project. It's no where near as complete as the iOS / Android cordova platforms, but it works - and is probably a better solution than MacGap if you're hoping to support both iOS + OSX. (having said that, MacGap probably works better "out of the box" currently).

    Note that the Cordova CLI doesn't currently work with cordova-osx - you have to maintain the OSX X-Code project manually, which is a pity. As well, many of the Cordova plugins don't support OSX.

    I had to do a fair bit of 'hacking' to get my app working on Cordova OSX. But at least I now have a HTML5 app which can run on Android / iOS / OSX which is pretty cool.