helium / hotspot-app

Helium hotspot app for iOS and Android
https://www.helium.com
Apache License 2.0
187 stars 139 forks source link

Disco Mode: Other error catches #545

Closed cokes518 closed 3 years ago

cokes518 commented 3 years ago

In addition to the router returning error = 1 (unable to dial hotspot), we should also preemptively want users that disco mode will not work if their hotspot is:

On the syncing, we can probably query its block height. For Hotspots that are not synced, show a popup after they press Discovery Mode:

"Unable to initiate Discovery Mode" "Hotspot must be fully synced, please try again later." "OK"

Unasserted Hotspots - see other GH issue

Freshly Booted: not sure what we do to predict this, but if they get no responses, they can probably just try again.

Relayed - use the same logic that the Explorer has (check with DCJ). For Hotspots that are relayed, show a popup after they press Discovery Mode:

"Hotspot is Relayed" "Relayed Hotspots running Discovery Mode may not receive responses from neighboring Hotspots. To take a Hotspot out of Relay, please visit the troubleshooting guide. https://intercom.help/heliumnetwork/en/articles/3207912-troubleshooting-network-connection-issues" "Cancel | Continue"

If they press Continue, let them begin a DM session.

matthewcarlreetz commented 3 years ago

@allenan @tyler-whitman Any ideas how we can detect if a device is freshly booted (without a ble connect)?

cokes518 commented 3 years ago

I'm not sure if that's something we can detect at all, which is why I left the comment above. This will likely need to be an education piece in a support article.