06-11-2018 06:19 - edited 06-11-2018 20:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2018 06:19 - edited 06-11-2018 20:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

- Labels:
-
JavaScript
Accepted Solutions
06-30-2018 07:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-30-2018 07:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sending a message via peerSocket to the companion should wake it up.

06-30-2018 07:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-30-2018 07:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sending a message via peerSocket to the companion should wake it up.

07-01-2018 18:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-01-2018 18:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you so much, Mr. Jon. I will try it.

