[TIZEN 2.3.2 WEARABLE NATIVE WATCHFACE] Communication between Service and Watchface

[TIZEN 2.3.2 WEARABLE NATIVE WATCHFACE] Communication between Service and Watchface

BY 07 Feb 2018 Native Application Development
 

Hello everyone,

I want to create a native watchface, which displays some further information from a webpage, which is constantly updated, besides the time. 

To retrieve the additional information from the webpage constantly, I would use a service (Or is this task possible to perform within the watchface app, e.g. with Ecore_Timer?), and package service and watchface app together. 

But how can the service app share the retrived string with the watchface? 

I found the following options, but couldn´t get it to work so far:

– using add_extra_data with app_control -> no option, because service shall not launche watchface, and the added extra data is here retrieved with the launch request (?)

– Message Port: How are the ports registered in the watch face life cycle?

-app_preference: How are the value key pairs retrieved with the  preference_changed_cb(const char *key, void *user_data) in the watchface every time the service updates them?

Best Regards

 

Written by