Mirko
Mirko

Reputation: 1

Creating Ambient mode for Gear S2 watch face in Tizen SDK

I would like to enable ambient mode in my standalone watch face (.wgt format) that is written in Tizen SDK for Gear S2. I constantly get an error message: "Attribute ambient_support is not allowed to appear in element tizen:application" when i place ambient_support="enable" at the end of this line of code in config.xml:

What could be the reason for that?

Also, how do i connect the ambient mode feature to my ambient mode graphic?

Thanks

Upvotes: 0

Views: 967

Answers (2)

Marco Büttner
Marco Büttner

Reputation: 1

Ambient_Support was added in Tizen 2.3.1. Make sure your application use api-version (native) or required_version (web) with 2.3.1 or higher

Upvotes: 0

Woochan Lee
Woochan Lee

Reputation: 176

Do you build an app on tizen_2.3.1 wearable SDK?

Um... i don't get that kinda error msg when i made a ambient sample application.

I followed below step.

1, New->Tizen Native project->Templete->Watch Application. 2, Check whether Ambient support is checked of not. in project->tizen-manifest.xml->Advanced tap.

To check ambient_mode in emulator

1, Build and install your application, then chage default watch to yours. (setting->clock) 2, you should turn on the display mode to Always on (setting->display->Check Always on)

Hope it helps.

Tested manifest file below.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns="http://tizen.org/ns/packages" package="org.example.watch" api-version="2.3.1" version="1.0.0"> <profile name="wearable" /> <watch-application appid="org.example.watch" exec="watch" ambient-support="true"> <icon>watch.png</icon> <label>watch</label> </watch-application> <privileges> <privilege>http://tizen.org/privilege/alarm.set</privilege> </privileges> </manifest>

Upvotes: 0

Related Questions