Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sms code retrieval is not working when the app is published on the play store #13

Open
Rodgerkilzone opened this issue Sep 9, 2023 · 6 comments
Assignees

Comments

@Rodgerkilzone
Copy link

Rodgerkilzone commented Sep 9, 2023

Describe the bug
When I publish the app on playstore the auto sms code retrieval is not working, and I think the issue is caused by appsignature changing when its published that causes it not to detect the sms code ,because the signauture appears similar for all devices and it has a space between the appsignature string

@Rodgerkilzone Rodgerkilzone changed the title Sms code retrieveal is not working when the app is published on the play store Sms code retrieval is not working when the app is published on the play store Sep 9, 2023
@oktaydegerli
Copy link

Same issue.

@Tkko
Copy link
Owner

Tkko commented Dec 18, 2023

@oktaydegerli
Copy link

I download deployment_cert.der and follow google's guide.
Also it returns same signature when i log (Pinput: App Signature for SMS Retriever API Is:) the released app with "flutter logs"

@Tkko
Copy link
Owner

Tkko commented Dec 18, 2023

@oktaydegerli Can you share the example of SMS you are receiving?

@oktaydegerli
Copy link

"44075 dogrulama kodu ile isleminize devam edebilirsiniz. 5Qs7QEoqbMg B354"

5Qs7QEoqbMg is the appsignature for the published app. Which is generated with using deployment_cert.der.

For debug, app signature is different and it works well.

@Tkko
Copy link
Owner

Tkko commented Dec 18, 2023

First of all let's try this: https://stackoverflow.com/a/55017393/8119550
If this isn't working then try to compute the hash again:
https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string

Also a helping hand from ChatGPT

Find the Production App Signature:

  1. If you use Google Play App Signing, the app's signature in the production environment will be different from your development environment.
    To find the correct signature, go to your Google Play Console, navigate to your app's release management section, and look for the app signing certificate information.
    Hash Generation:

  2. The signature needs to be SHA-256 hash and then base64 encoded (without newline characters and padding). You can use an online tool or write a script to generate this hash from your signing certificate.
    Include in SMS:

  3. This hash needs to be included in the SMS message exactly as generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants