We are looking to use Firebase Remote Config to be able to set a remote config setting which when retrieved from the Firebase SDK, will cause the application to deactivate the current user's session.
Our process flow is:
- User orders a rented device from our online eshop
- User collects the device prior to the event/conference
- User can use the app
However, sometimes the wrong device is handed out to the wrong user, so we would like the ability to from our web admin software, to use the REST API to set the remote config to deactivate=true. Then the device will fetch this value and if it receives deactivate=true then it will sign the user out.
According to the docs:
Note: Throttling is done from within the SDK. An app can fetch a maximum of 5 times in a 60 minute window before the SDK begins to throttle and returns FirebaseRemoteConfigFetchThrottledException.
So this means we can only check once every 12 minutes if the device has been deactivated? If the user has the wrong device this can lead to lots of data that needs to be moved around in the database, so ideally we would like a much smaller fetch time.