Closed ricardodolnl closed 3 years ago
I will investigate
Nevermind I fixed it. It was a mix of multiple things.
Long story short: the Google Play Console version of the app has a different SHA-1 then the SHA-1 of the release version you need to upload. Play Console changes this SHA-1. The problem was that I did not had a OAuth 2.0 Client ID with that SHA-1 (but I did for the debug and release keystore file).
So I was actually using Fitness.getSteps() without permissions. That's why the app crashed only in the version that was installed via the play store.
The app crashed on Android when a users wants to choose a google account (on the oAuth screen). This only happens on the bundleRelease version and not on debug or the apk production version (so really only on the bundle release version that you'd upload to play console). The app also already has a OAuth 2.0 Client ID with the scopes activity.read and location.read.
The weird thing is that I can't really debug it that well because the release version works, just not when I upload and install it via play console.
./gradlew installRelease
works fine./gradlew bundleRelease
and uploading to play console and installing it makes the app crash when clicking the on an account in the oAuth screen.