Languages

Menu
Sites
Language
API access from Dynamic box

Tying to access to tizen API but no success. Is it available from dynamic box? ot additionall prvilages should be set?

if (!tizen.messaging) {
  log('No "messaging" API!');
}
    
if (!tizen.contact)  {
  log('No "contact" API!');
}
    
if (!tizen.filesystem) {
  log('No "filesystem" API!');
}

 

 

 

Result is: No "messaging" API! No "contact" API! No "filesystem" API!

Responses

5 Replies
Lakshmi Grandhi

Hi,

Yes you need add privileges in the config file to use tizen apis.

 

 

Maksym

I have <tizen:privilege name="http://tizen.org/privilege/messaging.read"/> in config.xml
but still have no messaging

Alexander AVSukhov

Hello,

Make sure that you are using the latest version of SDK and device image (2.2.0 official).

We tested following code in box/index.html and it works fine.

tizen.systeminfo.getPropertyValue("BUILD", onSuccessCallback, onErrorCallback);

Raghu Kona

Hi Maksym,

In a Tizen application, you need to provide privileges for all the APIs you are using in the application.

In your case, please make sure to add privileges for messaging, contact and filesystem as you are accessing them.

Regards,

Raghu Kona

Yunchan Cho

Hi, I am s/w engineer to develop web dynamic box framework of tizen platform.

tizen device apis may works well in dynamic box, but are not announced yet offically in tizen web dynamic box.

So, for webapp specific apis like the followings, successful result are not guaranteed.

 - api for Retrieving Application Information

 - api for Managing Applications

 

I hope that next major version release supports tizen deviceapis in web dynamic box officially

Best Regards,