Pass integer from a watchface to an app #230
Closed
zdunex25
started this conversation in
Developer Feedback
Replies: 1 comment 5 replies
-
Hey, @zdunex25. Does your watch run on Zepp OS 1.0? If so, the easiest way would be to use SysProSetInt with SysProGetInt within both APIs (watch face & device) to transfer a variable -> https://docs.zepp.com/docs/1.0/reference/device-app-api/hmFS/SysProSetInt/ The localStorage or the hmFS File System Module is permanent storage, which is bound to its app/watch face location. So you won't be able to share a variable using this approach. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, from what I was able to find there is:
https://docs.zepp.com/docs/watchface/api/hmFS/SysProSetInt/ - for wachfaces
and:
https://docs.zepp.com/docs/reference/device-app-api/newAPI/storage/localStorage/ - for apps
the problem is that the data saved either way is not mutual, so how to properly transfer it?
@MyoungXUE
Beta Was this translation helpful? Give feedback.
All reactions