0

Is there a way to get daily step count in Tizen Wearable 4.0 - web (html + css + js)?

I'm making a Tizen Watch Face and I want to show it

alanmcknee
  • 162
  • 2
  • 3
  • 16
  • I think you have to preserve step count values within 24 hours. – Yasin shihab Nov 08 '18 at 05:09
  • @Yasinshihab yes, I can do it with just pure step counter, but Can I somehow get the data from S Health? I know it is possible, because some watch faces have it. And I can add it in the Samsung Watch Designer, so I'm just asking how to do it in JS. – alanmcknee Nov 08 '18 at 09:16
  • you need to use S Health SDK for Android .....also need Companion app SDK to transfer data to Gear – Iqbal hossain Nov 08 '18 at 14:51
  • Yeah, I know it is possible with tizen native. But with JS? Do you have any documentation? – alanmcknee Nov 08 '18 at 19:33
  • Yeah ....it is also available for JS ...check here https://developer.samsung.com/health/android Communication between gear and android https://stackoverflow.com/questions/49877474/retrieving-data-from-gear-s3-heart-rate-monitor-hrm-to-mobile-or-server/49892664#49892664 – Iqbal hossain Nov 13 '18 at 11:50

1 Answers1

1

I think the best option for your need is to use setAccumulativePedometerListener. It get data from SHealth and will be invoked when new accumulative pedometer data will be available. This listener collect's data when display is turned off.

lucash
  • 91
  • 2