How to create a Phonegap maker app for Android Wear?
I would like to create a pure HTML5 and Javascript based Phonegap app that can be built with a Phonegap build and be able to deploy to Android Wear.
If this is possible at the moment, what steps should be taken?
My research:
-
Phonegap Build forum notification about Ball Escape , which will reportedly be built with Phonegap and ready to run on Android Wear. But there are no details on how it was done, other than Phonegap Build rep Amir's pointless comment that someone did it.
-
I have gone through Building Apps for Wearables but haven't found anything on the subject so far.
-
Questions like this stackoverflow question or Run a Phonegap app that supports HTML5 and Javascript on Android Wear doesn't answer my question. Secondly, it even seems to contradict, as the answers to the answers claim, that it is not possible to create an HTML5 based Android Wear app as it only supports native Java based apps. But then again, there is Ball Escape , which claims to have been done in Phonegap.
I know that I can use CocoonJS from Ludei to create an HTML5 based app for many platforms, including Android Wear, pretty much like what I do in Phonegap (Ludei also offers a cloud build of their apps and this even seems free). But I have some performance doubts for my simple data transfer application because CocoonJS seems to be optimized for high performance games. Also, I would like to avoid switching Phonegap to a different environment, if possible.
source to share
@trejder, you have it right at this point. There is very little support for AndroidWear, but that doesn't mean it's impossible. Most Phonegap apps depend on Java (or Equivalent on platforms other than Android) to do the heavy lifting. If you see some of the tools, chances are you will see more.
One option is to team up with the Java author to write the most basic parts you need, but I haven't found much luck with that.
With all this in mind, however, I wouldn't worry. Over the past two years, many of the socks (I've seen) use BLE (Bluetooth Low Energy) in the wild. If so, for the wearing that you are looking at, then you are in luck.
Bluetooth Developers Forum https://developer.bluetooth.org/Community/Pages/default.aspx
Leading Bluetooth Developer Tools for Linux http://www.bluez.org/
Best of Luck Jesse
source to share