Open walljm opened 3 years ago
OK,
I found the issue. When Google Play builds the APKs for app bundle, it minimizes the code and does so by renaming the class names to simple letters (a, b, c, etc...)
That causes the capacitor code that gets the config to not use "GoogleAuth" as the name it uses when it tries to lookup the JSON config in the capacitor.config.json file.
You need to add a name property to the NativePlugin attribute like so:
@NativePlugin(name="GoogleAuth", requestCodes = GoogleAuth.RC_SIGN_IN)
to fix the issue.
In the mean time, you can add a proguard rule to your proguard-rules.pro file to mitigate the issue, or just disable the minify option in your build.gradle.
I'm getting a null pointer exception when i run the app after deploying it to the play store. It works when i deploy a debug build to the phone.