Phonegap as a platform for the Mac App Store?

I use phonegap to run my HTML / JS code in my native iOS app. Is there a way to do this on a Mac for inclusion in the Mac App Store? Or just a platform that allows me to run HTML / JS in my own application shell?

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

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

+4
source share
4 answers

Phonegap-mac did not see any work at that time. Perhaps try MacGap ( https://github.com/maccman/macgap ), which is a fork and is still actively developing.

UPDATE 2014-03-18 . Recently, MacGap has also not seen much work.

In my last application for the Mac App Store HTML5, I used Cordova http://cordova.apache.org , since I think this is the best solution in the long run.

There is a version of cordova-osx that can generate an OSX project. It's not as close as the iOS / Android cordova platforms, but it works - and it's probably a better solution than MacGap if you are hoping to support iOS + OSX as well. (saying that MacGap probably works better out of the box now).

Please note that CLI Cordova does not currently work with cordova-osx - you need to manually support the OSX X-Code project, which is a pity. In addition, many Cordova plugins do not support OSX.

I needed to do a little “hack” for my application to work on Cordova OSX. But at least I now have an HTML5 application that can run on Android / iOS / OSX, which is pretty cool.

+4
source

I have never seen an application in the Mac app store that uses a handset, but I created a sencha touch app for iphone and ipad using phonegap and I wanted to drop it into a mac app. It was not difficult, I did not use Phonegap, but I used all my SenchaTouch / Javascript / html files and was able to display them in a standard web view that can be placed in a mac application using the interface builder. Therefore, I had built-in controls on the outside and the senchatouch app inside. You can do this with any html5 framework.

This was not a good idea for my senchatouch application because it was not intended for a traditional mouse, but it was definitely functional and worked. In addition, using web browsing in this way will not violate any of the rules for representing the application store (unless the application simply disconnected LOL).

0
source

UPDATE: Titanium Desktop has been renamed tidesdk http://www.tidesdk.org/ and it looks really great. Try it fast.

0
source

MacGap ( https://github.com/maccman/macgap ) should be a great solution for you. It is under active development and provides access to various OS X desktop features, such as:

  • menu items
  • dock icon
  • window layout
  • Growl and native OS X 10.9 notifications
  • Fonts

as well as sound, application events, access to clipboards, etc.

By comparison, cordova-osx has very limited OS X desktop integration (almost none, I think). It is also very difficult to find documentation. Other solutions have either died (TideSDK), or are property that may or may not be what you are after.

Disclaimer: I am a member of the MacGap project.

0
source

Source: https://habr.com/ru/post/1391005/


All Articles