Open Mustafa-raja opened 2 months ago
Hi @Mustafa-raja, as stated in the second paragraph of the README:
This library can be used to build WearOS applications that are the counterpart of smartphone applications built with the nativescript-wearos-sensors plugin (for the NativeScript framework). The smartphone application counterpart can request to start/stop the data collection on the smartwatch, and then receive the collected data from the smartwatch.
Basically, starting/stopping the data collection from the smartphone is possible when the smartphone application uses the nativescript-wearos-sensors NativeScript plugin. The main drawback is that the smartphone application has to be developed using NativeScript (a multiplatform development framework) and not native technologies (why? to integrate this feature into another set of features that we already developed in NativeScript).
Therefore, to use this library and control the data collection from the smartphone, there are two options:
interval#batchSize
) to the path /accelerometer/start
. It would be like translating the nativescript-wearos-sensors code (TypeScript) into Java/Kotlin. I would not recommend it, but if you need a native application this is the only way.Let me know if you need more information or further assistance.
Thank you for the reply, I used Google's data layer API to establish communication. It would be good to have the communication feature added for Android using java/kotlin
I know it would be nice to have a smartphone native library. However, right now I'm busy with other things and can't commit to develop it. I might do it in the future, but can't promise anything or give an ETA. Sorry 😞.
would you mind if i fork your code and build those features on it ?
Of course you can! But bear in mind that you will have to build those features in a specific library for the smartphone. I mean, WearOSSensors is meant for smartwatches, thus you should create another library/app for smartphones.
The library documentation states:
While this suggests that the library supports starting and stopping data collection from the smartphone, it does not provide any details or examples on how to trigger these actions.
Request:
Could you please provide additional documentation or examples on how to:
Detailed instructions or code snippets demonstrating these functionalities would be greatly appreciated.
Additional Context:
This information is crucial for integrating the library into applications where control of data collection needs to be managed from a smartphone rather than the Wear OS device.
Thank you for your assistance!