getNextKey
Determines the next navigation key based on the current key and the state of permissions. The flow hierarchy is: Core Connection -> Shared Location -> Notifications -> Done.
Parameters
true on API < 31, where BLE scanning is gated by ACCESS_FINE_LOCATION rather than the Android 12 "Nearby devices" permissions. There the Bluetooth screen has already asked for the location permission, so following it with a Location screen asks the user for the same system permission twice in a row — and a user who declines both has spent both of Android's allowed denials before ever seeing the app, landing on USER_FIXED with no dialog available again. The Bluetooth screen covers both uses on those releases, so the second ask is dropped rather than duplicated.
false on hardware with no Bluetooth LE, where the Bluetooth screen is skipped.
false where no notification channel can override Do Not Disturb, as in a browser, where the critical-alerts screen is skipped.
true on a TV, which has no GPS to share and no notification or Do Not Disturb settings to send the user to, so the flow ends after Bluetooth.