Google-signin: DEVELOPER_ERROR during pre-launch report on Google Play

Created on 22 Nov 2019  路  7Comments  路  Source: react-native-google-signin/google-signin

The pre-launch reports in Google play raises a DEVELOPER_ERROR.
It works fine in dev / release / store mode.

Steps to Reproduce

Upload a bundle to the PlayStore using react-native-google-signin

Expected Behavior

Should login and not raise error

Actual Behavior

Raises DEVELOPER_ERROR.

Environment

  • react-native version: 0.61.2
  • @react-native-community/google-signin version: 3.0.3
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 21
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
        googlePlayServicesAuthVersion = "16.0.1"
    }
    repositories {
        google()
        jcenter()
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.2'
        classpath 'com.google.gms:google-services:4.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        mavenCentral()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        maven { url 'https://jitpack.io' }
    }
}


wrapper {
   gradleVersion = '4.4'
   distributionUrl = distributionUrl.replace("bin", "all")
}

Most helpful comment

Ah looks like it's been done already: https://github.com/ratson/react-native-firebase-test-lab

All 7 comments

does this help https://github.com/react-native-community/react-native-google-signin/blob/master/docs/android-guide.md#google-login-does-not-work-when-downloading-my-app-from-the-play-store ?

Signin from the downloaded version of the app from the Play Store works fine. It's just the pre-launch report that fails.

i'm having the same problem here.

I just noticed the same. I uploaded my build to Google Play closed alpha track, and suddenly in bugsnag I got 72 DEVELOPER_ERROR errors popping up from 11 different users, so I was like shit! Did I accidentally release or something? 馃槄 Good to know it was just from the google smoke test

One workaround is to disable google login on these devices.

Need to write equivalent to this code in React native:

String testLabSetting = Settings.System.getString(getContentResolver(), "firebase.test.lab");
if ("true".equals(testLabSetting)) {
  // Disable google login feature
}

https://firebase.google.com/docs/test-lab/android/android-studio#java

@mifi Looks like it's present in react-native-firebase in case you use that package

https://rnfirebase.io/app/utils#test-lab

We do not, and refuse to install all those dependencies just for this, so our team is investigating making a separate native module just for this.

Ah looks like it's been done already: https://github.com/ratson/react-native-firebase-test-lab

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rami-amar picture rami-amar  路  4Comments

apperside picture apperside  路  4Comments

GrishmaM picture GrishmaM  路  3Comments

pawellewandowski picture pawellewandowski  路  4Comments

BigPun86 picture BigPun86  路  4Comments