Git Product home page Git Product logo

Comments (11)

tanmoythander avatar tanmoythander commented on July 19, 2024 7

The reason behind the sms retrieving issue on google play version is the signing certificate. When you are building the app for uploading the app to play store, you use a certificate to sign the app is referred to as Upload key certificate. After you upload the build to play store, play store checks the upload certificate to make sure the build is really built by you. But before publishing the app, google play uses another certificate to sign it, which is referred to as, App signing key certificate. If you create the sms-hash using the Upload key certificate (resides inside your keystore), local release builds will capture the sms but the play store version won't.

So you need to create the sms-hash using the App signing key certificate instead of Upload key certificate. But don't replace the existing keystore including the Upload key certificate. In my case I solved it creating a new keystore in the android/app directory (where my existing keystores are kept). Then created the sms hash using the new keystore.

Go to the Google Play Console and download the certificate,
Screen Shot 2020-12-27 at 2 10 55 PM
you should get a file deployment_cert.der.

On the terminal, go to directory, /android/app,

    keytool -importcert -alias ALIAS -file CERTIFICATE_PATH -keystore certificate.jks

CERTIFICATE_PATH is the path to deployment_cert.der
ALIAS is the new alias name under the new store (remember it !!!)

When asked, set a password for new keystore (remember it !!!) and keep following.
You will find the new keystore certificate.jks under the directory android/app and make sure you never use it while building.
Now you can extract the sms-hash from the new keystore and alias using your preffered way.
Hope this stops you bleeding...

from react-native-sms-retriever.

hariks789 avatar hariks789 commented on July 19, 2024 2

See if this helps @sanjay-dev-19
https://stackoverflow.com/a/55829661/6423570

from react-native-sms-retriever.

Bruno-Furtado avatar Bruno-Furtado commented on July 19, 2024

@sanjay-dev-19 can you try to use the latest version of the module?

from react-native-sms-retriever.

 avatar commented on July 19, 2024

Latest version of this module, I tried and the issue remains the same.
It is working fine in our generated production build but when we upload to the playstore it is not autofetching the message.
I think it can be hash code mismatch and tried to generate hash using signature helper class and checked with that hash code but still not working.

from react-native-sms-retriever.

CarlosMayoralMX avatar CarlosMayoralMX commented on July 19, 2024

As long as i know derived app is resigned with another cert. I figured out days ago when i tried to install an update of my app trough Android Studio (using the same certificate i used to sign the previus version), it can't be installed because the signature wasn't the same.

from react-native-sms-retriever.

 avatar commented on July 19, 2024

Yes. Before our goes App goes live, play store will resigns our app using there deployment certificate.
I think there may be some problem in play store resignig our apps.
I am getting this issue in our 2 production App in playstore.
In our Both Apps previously auto fetch message working fine. When I recently updated our both apps in playstore, Both apps stopped autofetching message in play store builds and they are working fine in our generated APK builds.

from react-native-sms-retriever.

CarlosMayoralMX avatar CarlosMayoralMX commented on July 19, 2024

Why dont you try to make the hash with the certificate Play Store is using to resigning your app and put it into your sms messages instead the one you are using to upload your apps?

from react-native-sms-retriever.

ThakurBallary avatar ThakurBallary commented on July 19, 2024

Hi All,
@sanjay-dev-19 did you try the above suggestion from @CarlosMayoralMX . Please update us.

from react-native-sms-retriever.

 avatar commented on July 19, 2024

@CarlosMayoralMX @ThakurBallary
Yes, Thanks for your suggestions.
I tried using both certificates. But they are not working once I upload build to Play store.

from react-native-sms-retriever.

 avatar commented on July 19, 2024

@hariks789
Thanks for the reply,
I tried that and generated hash at first and it is working perfectly fine at the beginning. In third app updation time it stopped working in Playstore live app.
Any how, I removed the auto fetch message functionality in our app.

from react-native-sms-retriever.

tanmoythander avatar tanmoythander commented on July 19, 2024

Same Problem here.
I am using,
react-native: 0.63.3,
react-native-sms-retriever: 1.1.1

I was really happy to see that it was working on production build, but after launching on play store, i found the issue.

from react-native-sms-retriever.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.