Google-signin: What is my iosClientID

Created on 6 Jun 2016  路  1Comment  路  Source: react-native-google-signin/google-signin

Hey there. I am using this module for my android and ios project. I don麓t have any issues with my android version, it just worked on the fly. With my iOS version i can麓t figure out what to put in my iosClientID. For Android i had to set my webClientID and that was all, now maybe someone has a hint for me what to use for my ios App. My code so far:

        if (Platform.OS === 'android') {
            GoogleSignin.configure({
                scopes: ['email', 'profile', 'https://www.googleapis.com/auth/plus.profile.emails.read', 'https://www.googleapis.com/auth/plus.login'],
                webClientId: Constants.GOOGLE_SIGN_IN_CLIENT_ID,
                offlineAccess: true // if you want to access Google API on behalf of the user FROM YOUR SERVER
            });
        } else {
            GoogleSignin.configure({
                scopes: ['email', 'profile', 'https://www.googleapis.com/auth/plus.profile.emails.read', 'https://www.googleapis.com/auth/plus.login'],
                iosClientId: Constants.GOOGLE_SIGN_IN_CLIENT_ID, // only for iOS
                webClientId: Constants.GOOGLE_SIGN_IN_CLIENT_ID,
                offlineAccess: true // if you want to access Google API on behalf of the user FROM YOUR SERVER
            });
        }

Most helpful comment

the iosClientID is simply the id you get when you download your plist file

to find it again: open google cloud console. under Api Manager -> Credentials, Section OAuth 2.0 client IDs take the client ID with a type of iOS

>All comments

the iosClientID is simply the id you get when you download your plist file

to find it again: open google cloud console. under Api Manager -> Credentials, Section OAuth 2.0 client IDs take the client ID with a type of iOS

Was this page helpful?
0 / 5 - 0 ratings