语言

Menu
Sites
Language
Samsung Gear 3 Advanced Watch face

Dear,

I am working on a wearable web solution. It is an application that allows you to check stock quotes on google finance.

I already created a web application that allows you to create and edit your portfolio (simple list item handling) - portfolio being the list of stocks to check.

Now i wanted to present the results for each stock on either:

- widget

- custom face watch

The goal is to have the application store its state somewhere - either through tizen.preference, localStorage or pure file storage.

Later on the widget / watch face would read that information and get the most up to date data.

 

But in this subject i am having quite some difficulties getting it to work.

I would like to ask some questions about my situation on this forum, hoping that some good guy / girl will pick it up and point me towards the right direction to solve those issues.

1) Can i package in 1 packge a watch face AND a web application that would be able to share localStorage / tizen.preference - if yes can someone please post a backbone of this solution?

2) Can i package in 1 package a widget and a web application that would communicate with eachother through tizen.preference or localStorage

3) If i decide to move the logic from the web application to a watchface - what features will be blocked? will i be able to use tau? more specific: tau.changePage()

 

Here are the scenarios i went through so far:

- custom watch face - i am not able to launch ANY page. I added to the index.html another up-page div, and attached the whole TAU to that watch face. When i call tau.changePage - i see in the debugger that the line is NOT producing any errors, but the page is not changed.

- created 2 projects: web app and widget. Both are separate projects but they are referenced through tizen studio. I created a signed package and deployed it to Gear s3. not  signle line from javascript file attached to hte widget gets called. console.log doesn't work eiter...

- endless try and check the results by modifying config.xml in both packages

- trying hacking  bit with document.location - but then the whole thing steps outside TAU which i don't like...

 

I don't think that my solution is a complicated one. in my opinion tizen should support this sort of packaging out of the box so i must be doing something wrong...

 

Can anybody please help me because i am stuck for several days already - quite frustrating especially taking into account that most of my solution is done - it is just the cherry on top that i am missing now.

 

Kind regadrs

Piotr

查看选择的答案

响应

2 回复
Mark as answer
Iqbal Hossain

hi~ 
I think you should go for Tizen Web app with Widget. For Web Widget you have to use Tizen 2.3.2. 

And you can use Indexed Database to store your data.  

Resource: https://developer.tizen.org/ko/development/tutorials/web-application/w3chtml5supplementary-features/storage/indexed-database?langredirect=1#db 

For IndexedDB see the Online Sample app Money Book  from IDE for implementation help. 
Also follow this thread for more details info 

https://developer.tizen.org/ko/forums/web-application-development/shared-data-storage-multiple-tizen-web-apps?langswitch=ko

TAU may not be worked with Watch Face app as far i know. 

Piotr Scheibe

Hi Hossain,

Thanks a lot for your input.

So there is NO WAY of creating an advanced watch face with an application behind?

Having a watchface that displays the current time, with 1 button. when you press the button, and application comes up where you can configure your watch face?

This is a disappointment....

 

Piotr