Android Google Login Working on Release signed Version But not Working On Release .aab file - firebase-authentication

I am getting the issue in .aab file only that google login is not working but in apk it is working properly.I am stucked from past 1 Week.I checked SHA-1 keys properly.i give both release and debug SHA-1 keys in firebase console and I already check those keys are inserted on google cloud console also.After I Created Released .aab version I checked on Browser Stack by installing .aab file but it always says Api Exception Error 10 .But when I try released signed apk it working good why this was happening please help me friends.

Related

HMS getToken returns null if app is installed from APPGALLERY

I build an app. I am using the HMS Push kit for notifications. It is working fine if I build apk and install it on a device directly. But if I install this app from Huawei AppGallery, it returns a null token to me.
To get Token I wrote this code:
String appId = AGConnectServicesConfig.fromContext(context).getString("client/app_id");
String token = HmsInstanceId.getInstance(context).getToken(appId, "HCM");
I do not know what is the problem with installing an app from AppGallery. I cross verified SHA-256 key, connect-services.json file, appid etc.
The app will work fine if I make debug or release apk and install it on a device. The app will return a null token if I will install it from AppGallery.
Could you pls check if the onNewToken method returns a token? To better locate this issue, Can you mind share the APK from AppGallery and detailed logcat logs for us to check? You could send the APK to hmscore#huawei.com.
Huawei is generating 2 SHA-256 keys, one locally. Second at App Signing module at developer account.
After adding second SHA-256 key, my issue was resolved.

Your Android App Bundle is signed with the wrong key. (While uploading app on google play store for the first time)

I am uploading my first release on google play store everything is working fine (app is working fine also build is successful) , I tried rebuilding the app many time with following the docs on react native official website but while uploading it is giving me above error with SHA key
I tried many solution on stackoverflow but nothing works for me as most of the solution is for second time release but mine is first time
Please help me I wasted my 6 hours on this but I am not getting solution
I got the answer
Steps:
Open the project in android studio and clear the project .
Then rebuild it after gradle sync .
Then Generate the keystore (in android studio).
Then Generate Apk (in android studio).
Setup everything again on google play console .
Then try uploading .aab file again on google play console

React Native Google Login (Error: A non-recoverable sign in failure occured)

I am using react-native-google-signin version 2.0.0. I followed each and every step to make it working in Android.
I am using the both Debug and Release SHA keys in Firebase. In one of my other project google signin is working fine using debug key. I have generated the debug and released key correctly by using the commands as well as from Android Studio.
I tried each and every solution from Git and Stack but still getting the error in Alert box that "Error: A non-recoverable sign in failure occured".
I am stuck on this problem from last 3 days and still cannot be able to find out the correct solution.
I solve this problem yesterday. Actually keygen command provides the wrong SHA keys. Also, I matched the keys via command line and Android both were same.
After that I copy the keystore file and convert online for getting SHA keys. I put the new keys in Firebase and it start working.

Android Studio 3.3 Signed APK Option Missing

I'm trying to publish my Ionic 4 app into Play Store through Android Studio and the option to build to a signed APK is missing. I know there are similar questions to mine already asked here, but their answers are directed for previous versions. I have spent many hours searching through websites and I have typed lots of command prompt commands, such as
ionic cordova build android
and
cordova build --release android
I went to build and did the signed APK a few times, and it gave me a small window about "required updates."
I agreed, then it restarted, and after I went back to build and the option was missing! I tried installing and reinstalling Android Studio. I want to be able to create a signed APK and publish my app to Play Store. Where is the missing option? Please help me figure out how to turn on this feature in my Android Studio version 3.3.2.
Thanks to CodeChanger. Run the emulator, then restart the app. The Signed APK option will appear.

com.facebook.sdk error 2 in distribution

I already had this working in older versions of my app but our newest update shows this error: com.facebook.sdk error 2 when logging in to facebook.
The app works fine in the simulator and device when built in development mode but the error only shows up when its in the App Store and built in distribution mode. I already found tons of information on the internet but thats not working.
I've checked:
sandbox mode is disabled
bundle id is correct
app store id is correct
facebook logging and deep linking are enabled?
Again our older version worked fine in distribution mode. Our newest version of our app uses facebook sdk 3.5.
EDIT
I unlinked facebook on my device and found out that it returns the wrong app! When pressing the login button safari opens up ask the user for permissions then returns to another app I made (practically the same app but made for a different company). So I deleted all apps on my device and the error was gone.
Double checked the app id on developers.facebook.com and the fbid in my code and thats all correct.
Why is my app returning a different app after giving permissions?
For some reason my phone was mixing up my apps. Uninstalled all and reinstalled and everything worked out fine.