Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I restart device application on ionic/versa automatically with javascript?

ANSWERED

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.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Sending a message via peerSocket to the companion should wake it up.

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Sending a message via peerSocket to the companion should wake it up.

Best Answer
0 Votes

Thank you so much, Mr. Jon. I will try it.

Best Answer
0 Votes