06-13-2023 23:20
06-13-2023 23:20
Hello Developers,
I have have clone the repo from @Gondwana fitbit-accel-fetcher and it works fine on atlas and vulcan. I have downgraded the SDK and made some changes for the build targets to mira and app build fine and gets installed in the simulator too.
Problem happens when I try to install it on the simulator and run it. The CLI prompts an error saying
I have installed the android app on the phone and trying to fine tune your project into versa 2. I am running SDK 4.3.0 I have updated the package.json and Node modules by commanding npm i after SDK installation on the app path but nothing changes the error. It would be great help if any one could help me with this mira development.
Thank you so much in advance.
Answered! Go to the Best Answer.
06-14-2023 02:35
06-14-2023 02:35
Please see this post. Among other things, the button components changed between SDK4 and SDK5. Refer to the SDK4 documentation in the linked post. You'll need to rewrite the button bits to use the SDK4-style buttons (or make other alternative arrangements).
It might be possible to do that using the sim, but that app won't work fully in the sim because the sim can't communicate with the server code on the phone, and it doesn't simulate an accelerometer.
06-14-2023 02:35
06-14-2023 02:35
Please see this post. Among other things, the button components changed between SDK4 and SDK5. Refer to the SDK4 documentation in the linked post. You'll need to rewrite the button bits to use the SDK4-style buttons (or make other alternative arrangements).
It might be possible to do that using the sim, but that app won't work fully in the sim because the sim can't communicate with the server code on the phone, and it doesn't simulate an accelerometer.
06-14-2023 02:41
06-14-2023 02:41
@Gondwana Thank you so much for your reply sir. Is there any guide to rewrite the button bits?
Or it's better to move to another fitbit (vulcan/atlas) for development?
06-14-2023 02:53
06-14-2023 02:53
I don't know of any guide. Learn by implementing a button using an example from the SDK4 documentation.
Newer watches won't provide much advantage for accelerometer data collection.