helium / hotspot-app

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

Create "Fleet Mode" for App users with many many Hotspots #801

Closed cokes518 closed 3 years ago

cokes518 commented 3 years ago

Reported by Android user on 3.4.1 with 100+ Hotspots in the account, using Samsung Galaxy Tab.

https://explorer.helium.com/accounts/139DUUzVJcR6NcvjkXGJzSpaWLXUjRDvGMEQuHCDkikybzePfn2

cokes518 commented 3 years ago

Problem: Users with hundreds of Hotspots in an account are unable to open the app and taps are unresponsive. It is also making hundreds of API calls and calculating position in the shortcut nav, crushing the app performance.

Solution: Create a "Fleet Mode" option in Settings, which will be enabled by default for Accounts with more than 20 Hotspots.

When Fleet Mode is turned on:

1) Set Followed Hotspots as default in the Hotspot list 2) Don't show earnings in Owned Hotspot list 3) Only show Followed Hotspots in the shortcut nav

Users can go into Settings to turn off Fleet Mode. If they do, show a warning:

"Turning Off Fleet Mode" "Turning off Fleet Mode may negatively affect App performance, resulting in your ability to interact with the App. We do not recommend turning off Fleet Mode for users with more than 20 Hotspots in an account."

"Cancel | Turn Off Fleet Mode"

For Users seeing Fleet Mode for the first time, can we send them a popup? "Fleet Mode Enabled" "Fleet Mode has been enabled for this account to improve app performance." "OK"

cokes518 commented 3 years ago

# Hotspots in the account to trigger Fleet Mode = 20. But please make this an env var so we can adjust as needed without a release.