lab11 / summon

Browser for the Local Web of Things
18 stars 7 forks source link

Device doesn't show up after hitting back button from device app #12

Open bradjc opened 9 years ago

bradjc commented 9 years ago

If I hit the back button after using the PolyPoint app, the tritag I had connected to doesn't show up in the list again. I think this is because summon is still connected to it, so the tritag is not advertising. It doesn't appear that onPause gets called, which is where I have a ble.disconnect call.

I'm not sure what the best way to handle this is. It seems like back should kill the app (or maybe after a delay) and onPause should get called so that it can clean up any state.

On the other hand, having the app go right back to where it was if it is re-selected would make for a better user experience.