sorry, i’am researching for build a wearos app: Is...
# compose-wear
l
sorry, i’am researching for build a wearos app: Is there currently a way to connect samsung watch with my wear app, and is there any way to send realtime data from wear app to my smartphone? https://github.com/yschimke/rememberwear: I have follow git: thank you for your support
y
Samsung Galaxy Watch 4/5? Yes, that is a Wear 3 device.
You can use the Wearable Data Layer directly to send data.
The GitHub project is 100% standalone, so won't help you
There are some higher level abstractions in the Horologist library for detecting devices, requesting play store install, launching remotely and a DataStore abstraction. They all just build on top of the Data Layer.
l
Currently I learn how to connect from smart phone to wearos which is blutooth? Besides, is there any other way?
y
A lot of the datalayer functionality can work device to device over Bluetooth, or through cloud if you are both connected to internet.
If you mean directly over a socket on a local Wifi it should work, but I don't have any good examples.
l
image.png
https://developer.android.com/training/wearables/data/data-layer I have researched here, but still don’t understand what is
cloudNode
?
y
A server hosted by Google that securely ( end to end encrypted) connects you watches and mobile as if they were near each other for the data layer.
l
Is it a cloud to store data, like google fit? to sync data?
y
Lower level. data layer Messages and DataItems
And not addressable by you
l
I can replace Cloud Node with my server, can I send data from wearos to my server?
Is there a way for us to read data from the sensor on the watch to update it on the wearos app? We still don’t understand this? @yschimke :Can you support me with some solutions here?
y
Health Service from the Watch can help you get the sensor data https://developer.android.com/training/wearables/health-services
y
I think these cover some of this topic

https://www.youtube.com/watch?v=OuCY5Kpu5xA

https://www.youtube.com/watch?v=Dgo3eXpWN1Y

l
thank for your supporting. so much.
i installed app on smart phone, but it don’t find my wear. 🥲
y
Is Samsung Watch 2 not a tizen os based watch? Then you can not use any SDKs from android/wear os.
l
@Yingding Wang: ss watch 2 &3 is run on the Tizen , but i haven’t connected them to my application yet.
I try get data from watch such as heart, … but not yet. https://github.com/starryalley/CSC_BLE_Bridge
y
@lam bui Unfortunately I am not familiar with Tizen OS from Samsung. I would love to help with any google wear os or compose wear related issues.
l
thank you for your supporting. Is it possible to build an app, connect to watch, get information: heart, step? I have researched a lot but still can’t find it. Device samsung 4,5 run wear os.
y
Sure. It will work. Please try the example of health service of wear os 3 to get the heart rate data. https://github.com/android/health-samples/tree/main/health-services/PassiveData You can then use this data collected in your wear os app to send it to your android app Please try the example of data layer of data can be exchanged between wear os and android apps (it is what you have discussed with Yuri in this thread) https://github.com/android/wear-os-samples/tree/main/DataLayer
If you are interested, the Stila app i have built does very similar thing. Which collects the heart rate data and calcuated stress score on android app. https://play.google.com/store/apps/details?id=lmu.pms.stila&hl=en&gl=US
l
interesting. So cool. Let me check. Thank you so much.
y
Additionally, samsung health shall work with google health connect app. https://play.google.com/store/apps/details?id=com.google.android.apps.healthdata&hl=en&gl=US You shall be able to build an android app to integrate with health connect, to get samsung health data such as heart rate on android app. There are multiple path to achieve your goal
l
client want create a app, that it scan bluetooth and connect to watch. In here, app can directly collect data.
They don’t want to build an app installed on the watch to support sharing data.