I am new to the Puck-js world, so far I am very impressed with how it all works and have been able to accomplish most tasks but I am struggling to get it to stay connected in the background of an android app.
GOAL: Keep the puck alive in the background and update a characteristic on button press (from the puck) to trigger an event. Essentially using the puck as a panic button. All of the functionality works up until the point where it has been anywhere from minutes to an hour after the first connection (while the app is in the background) that it disconnects and the app no longer sees any characteristic changes.
QUESTION: Is this possible? Can I keep the puck connected to the app indefinitely while the app is running in the background on my phone (android or IOS)
Any direction on this would be greatly appreciated, Thanks!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I am new to the Puck-js world, so far I am very impressed with how it all works and have been able to accomplish most tasks but I am struggling to get it to stay connected in the background of an android app.
GOAL: Keep the puck alive in the background and update a characteristic on button press (from the puck) to trigger an event. Essentially using the puck as a panic button. All of the functionality works up until the point where it has been anywhere from minutes to an hour after the first connection (while the app is in the background) that it disconnects and the app no longer sees any characteristic changes.
QUESTION: Is this possible? Can I keep the puck connected to the app indefinitely while the app is running in the background on my phone (android or IOS)
Any direction on this would be greatly appreciated, Thanks!