mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-21 02:26:30 +08:00
Merge pull request #1398 from invertase/functions-multi-app-regions
[utils][js][android] add `firebase.utils().getPlayServicesStatus(): P…
This commit is contained in:
@@ -55,6 +55,11 @@ export default class RNFirebaseUtils extends ModuleBase {
|
||||
}
|
||||
}
|
||||
|
||||
getPlayServicesStatus(): Promise<GoogleApiAvailabilityType | null> {
|
||||
if (isIOS) return Promise.resolve(null);
|
||||
return FirebaseCoreModule.getPlayServicesStatus();
|
||||
}
|
||||
|
||||
promptForPlayServices() {
|
||||
if (isIOS) return null;
|
||||
return FirebaseCoreModule.promptForPlayServices();
|
||||
|
||||
Reference in New Issue
Block a user