Replies: 1 comment 1 reply
-
There is no ability to do that in the firebase APIs, and this module is intended to expose the native firebase SDK APIs under a firebase-js-sdk API compatible surface area, nothing more nothing less What you want is device geolocation, or geocoding to resolve to a location, then a lookup between the functions regions. That would be custom code involving something like react-native-background-geolocation-android and a lookup table of cloud function regions and the lat/long geofences you'd want to go to each one, or some cloud geocoding lookup service in the cloud based on IP and still a lookup table you maintain of cloud function regions and the lat/long you want to go to each one None of that will happen in this library, it would be an app feature you'd need to implement. This library can support specifying the region for a cloud function call, as permitted in the native SDKs but nothing more - determining the region is out of scope |
Beta Was this translation helpful? Give feedback.
-
How to automatically connect to the nearest server region with Cloud Functions httpsCallable?
I want to reduce latency and use multiple cloud function server regions, is that possible without using device location APIs?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions