lab11 / summon

Browser for the Local Web of Things

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bradjc opened this issue · comments

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.