Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[iOS] Don't show google signin button on iOS <= 10

Saúl Ibarra Corretgé5ff1ce5a60ae
diff --git a/react/features/recording/components/LiveStream/GoogleSigninForm.native.js b/react/features/recording/components/LiveStream/GoogleSigninForm.native.js
index 063e18631c..40efe80cfe 100644
--- a/react/features/recording/components/LiveStream/GoogleSigninForm.native.js
+++ b/react/features/recording/components/LiveStream/GoogleSigninForm.native.js
@@ -1,7 +1,7 @@
// @flow
import React, { Component } from 'react';
-import { Text, View } from 'react-native';
+import { Platform, Text, View } from 'react-native';
import { connect } from 'react-redux';
import { translate } from '../../../base/i18n';
@@ -74,6 +74,18 @@ class GoogleSigninForm extends Component<Props> {
* @inheritdoc
*/
componentDidMount() {
+ if (Platform.OS === 'ios') {
+ const majorVersionIOS = parseInt(Platform.Version, 10);
+
+ if (majorVersionIOS <= 10) {
+ // Disable it on iOS 10 and earlier, since it doesn't work
+ // properly.
+ this._setApiState(GOOGLE_API_STATES.NOT_AVAILABLE);
+
+ return;
+ }
+ }
+
googleApi.hasPlayServices()
.then(() => {
googleApi.configure({