Overview of Web and Native API Frameworks
The Tizen platform supports two primary application types.
- Web apps are Internet-enabled apps that are accessible through the mobile device’s web browser. A web framework provides state-of-the-art HTML5/W3C APIs, web UI framework, supplementary APIs, and additional Tizen device APIs. The web application type is strong in portability, ease of app development, and has a minimal learning curve.
- A native framework supports full-featured native application development and provides a variety of features, such as background service and image and face recognition. Native apps use the native API, which provides all of the memory management and performance benefits that go with building applications for Linux in C.
For more detailed information about web and native APIs, see the following links:
|Overview of web and native applications||Differences between Tizen web-specific and native-specific applications, Tizen architecture, and Tizen documentation.||https://developer.tizen.org/development/getting-started/overview|
|Introduction to web applications||Guides you to familiarity with Tizen web API programming and application models.||https://developer.tizen.org/development/getting-started/web-application|
|Web app development||Helps you create and develop your first web app.||http://developer.samsung.com/gear/develop/creating-your-first-app/web|
|Introduction to native applications||Guides you to familiarity with Tizen native API programming and application models.||https://developer.tizen.org/development/getting-started/native-application|
|Native app development||Helps you create and develop your first native app.||http://developer.samsung.com/gear/develop/creating-your-first-app/native|
Standalone and companion apps
A watch app that was developed using either web or native application can be either a standalone or a companion app.
A standalone watch app can function on its own and does not require any other app to execute its functionality.
- Standalone watch apps may or may not need network connectivity (for example, the calculator app does not need network connectivity in order to function).
- Standalone apps can also handle authentication on the watch application.
Companion apps consist of two apps working together. One app runs on the watch, and the other is an Android app running on the Android device.
- Most companion apps use the phone's connectivity to communicate to the cloud. If the watch is no longer connected to the phone, it can use its own WiFi connectivity (or 3G) to talk to the cloud.
- Watch companion apps can take advantage of Android companion apps to get user credentials.
- Samsung provides a Samsung Accessory Protocol (SAP) library (Samsung Accessory SDK), which can be downloaded separately. SAP library has all the APIs necessary to handle the communication between watch apps and Android apps.
- To enable host devices such as the phone to recognize companion apps, specific metadata must be declared on both the host Android app's manifest file and on the watch app’s config.xml or Tizen manifest file. For more information, see http://developer.samsung.com/gear/develop/creating-your-first-app/web-companion/configuration
Tizen SDK downloads
|Tizen SDK||SDK to develop standalone and companion watch apps based on the Tizen web API or native API.|
|Download||Source for Tizen SDK files, SDK tools, and IDE tools||http://developer.samsung.com/gear/develop/sdk|
|Installation||Tizen SDK overview, prerequisites, installation, updating, extension SDKs, and uninstalling||https://developer.tizen.org/development/tizen-studio/download/installing-tizen-studio|
|Tizen Extension SDK||SDK to install the certificate extension (to generate wearable device certificates) and the wearable extension on wearable devices.|
|Installation||Step-by-step procedure to install the extension SDK in Tizen Studio||http://developer.samsung.com/gear/develop/creating-your-first-app/web-companion/setup-sdk|
Samsung Accessory SDK
|SAP enables watch apps to communicate with Android apps|
|Download||Link to the Samsung Accessory SDK and its resources||http://developer.samsung.com/galaxy/accessory|
|Programming||Link to the Samsung Accessory programming guide||http://developer.samsung.com/galaxy/accessory/guide|
You can design and create interactive widget applications that run on watches and display glanceable information to users. Widgets can include action events in response to screen taps by users.
Widgets are located on the right side of the watch face and are accessed by rotating the watch's bezel. Because they’re easy to use while you're on the move, they’re a great opportunity to engage with users. Widgets also act as a shortcut to your watch application. For more information about widgets, see the following links:
|Web widget development||http://developer.samsung.com/gear/de...app/web-widget|
|Native widget development||http://developer.samsung.com/gear/de...rst-app/native|
|Programming guide for web widgets||https://developer.tizen.org/developm...et-application|
|Programming guide for native widgets||https://developer.tizen.org/developm...ion-management|
Tizen Wearable In-App Items
Within watch apps (companion or standalone, web or native), you can sell commercial in-app items such as virtual items, increasing levels of play, advanced app features by integrating Tizen Wearable in-app purchase (IAP) functionality.
For more information:
- Tizen Wearable In-App Purchase Items: https://resources.developer.samsung....Purchase_Items
- In-App Purchase Guide for native API: http://img-developer.samsung.com/onlinedocs/gear/Extension_PG_Native/html/prog_guide/inapp_wn.htm
- In-App Purchase Guide for web API: http://img-developer.samsung.com/onl...e/inapp_ww.htm