Hello. I am developing ionic/versa application now.
I want to realize stabled data linkage to 3rd party cloud with through companion.
But now, on running my ionic/versa application, bluetooth socket tends to be closed in about a hour, so I have to back to clock-face and restart application.
I think the one of the way to realize it is to restart the app automatically when the socket connection is closed.
If you know how to restart application on ionic/versa automatically with javascript, could you let me know the sample code? Any other solutions are also welcome.
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Sending a message via peerSocket to the companion should wake it up.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Thank you so much, Mr. Jon. I will try it.
Best Answer