06-11-2018 06:19 - edited 06-11-2018 20:29
06-11-2018 06:19 - edited 06-11-2018 20:29
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.
06-30-2018 07:17
06-30-2018 07:17
Sending a message via peerSocket to the companion should wake it up.
06-30-2018 07:17
06-30-2018 07:17
Sending a message via peerSocket to the companion should wake it up.
07-01-2018 18:18
07-01-2018 18:18
Thank you so much, Mr. Jon. I will try it.