[Wearable] Using tizen API in web worker’s script

[Wearable] Using tizen API in web worker’s script

BY 28 Jul 2017 Web Application Development

Hello, guys.

I am Tizen newbie and JS newbie as well.

I tried to use tizen API in worker.js not app.js. 

Why I use Tizen API in worker.js is that I need to write a data from sensors to specific text file continuously.

It was success to run in app.js that the very first script when I made this project.

 

However, in worker.js, I cannot use tizen API and tizen studio gave me below error message.

Can’t find variable: tizen.

 

Question 1 : Is it possible using tizen API in other javascript file?

Question 2 -1 : If it is possible, do I have to specify something for worker.js?

Question 2-2 : If it is impossible, what should I do for above situation? Could you suggest ?

Written by