语言

Menu
Sites
Language
How to use privileges

Hello,

I want to use function tizen.application.launch("") in my project for Gear2.

I've added

<tizen:privilege name="http://tizen.org/privilege/application.launch"/>

to config.xml, but when I try to deploy widget on device failed with "Error code: PRIVILEGE_LEVEL_VIOLATION".

Why this happens if that privelege is public?

编辑者为: A M 22 5月, 2014

响应

5 回复
Thijs Mergaert

Hi,

Have you made sure your certificates are in order?  If I remember correctly from my own experimentation, not having the certificates in place also gave a similar error when deploying.

Thijs

A M

I'll check that.

Thank you.

Alex Dem

Hi,
Ususally the error is due privilege level violation.
I have installed both sdk for mobile and for wearable and I use the same Security Profile (from Tizen for Mobile) in Window->Preferences->Security Profiles:
In my case tizen.application.launch() works properly
Alexey.

Alex Dem

Sorry for inattention.
But I have checked on emulator only (I have no device).
I think you should order a certificate as it was proposed above.
Alexey.

A M

Certificate is a solution. Thanks.