Is Watch / Wearable cross-platform development possible?

since I am new to the world of developing applications for watches, as well as the fact that it exists for smartphones in the following frameworks:

  • Xamarin
  • Phonegap
  • Appcelerator
  • Horses
  • Cordoba
  • ...

I wonder if there are similar frameworks for such applications? So you code once, but work in general.

thanks

Change 1 :

On this day (05/12/2015) regarding the response of the builder here . I will go with nativescript to start writing a wearing app.

+5
source share
3 answers

Cordova / PhoneGap applications do not work directly on wearable devices / watches. Cordova / PhoneGap is basically a javascript API that can run on WebKit / WebView on all mobile OS. But Android Watch and Apple Watch do not support WebKit, so applications developed with Cordova do not work directly on Watch devices. But if you want to extend some features of an existing Cordova application to a downloadable application, you need to create an extension application in your native language, and the extension must be able to communicate with the paired application on your mobile device. The extension on Watch will only have a user interface, and business logic, etc. Works on the Cordova app on a mobile device. It is possible to establish a connection between these applications, which will control the display on watch devices.

I'm not sure about the other frameworks you mentioned above about how much they support wearable devices.

+1
source

As @kiran and @NRimer noted, these cross-platform platforms rely on WebKit / WebView, which is an almost universal layer supported on every mobile device. They do not run directly on the device, but the device launches the WebKit platform, which launches these cross-platform applications. Therefore, comparing the capabilities of a native application with a cross-platform application, the native application is larger because it may have hardware features associated with the device. The peculiarity of smart watches is that they mainly rely on another smartphone device, and it uses communication protocols specific to the hardware, and WebKit does not have a hand in this.

+2
source

It depends on what you are going to do with the framework. Watch how applications collect the data contained in their application. For example, if you want to provide custom notifications on a watch, an application (or a server for remote notifications) creates them. When your watch application needs information, it sends a request to the containing application. Suppose you have a group of applications in which you want to provide the same notifications or functions in each of your watch applications, you can create a framework that processes these functions for the containing application. For the part of the watch, think of it as most of the display of the information provided. Unfortunately, I do not think that there is a way to generate frameworks for applications for viewing. If you want a lot of code in your watch app, it can be tricky, but you need to be fine to display information easily.

+1
source

All Articles