Comments (11)
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,
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.
See if this helps @sanjay-dev-19
https://stackoverflow.com/a/55829661/6423570
from react-native-sms-retriever.
@sanjay-dev-19 can you try to use the latest version of the module?
from react-native-sms-retriever.
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.
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.
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.
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.
Hi All,
@sanjay-dev-19 did you try the above suggestion from @CarlosMayoralMX . Please update us.
from react-native-sms-retriever.
@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.
@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.
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)
- App crashes HOT 3
- In ios HOT 2
- app Crashed after installing the package
- already managing a googleapiclient with id 0 HOT 1
- Hash string - how hide it inside sms ? HOT 1
- Problems generating the Hash and using the lib
- This library keeps working? HOT 1
- just an inquiry
- Not working on Samsung and One plus. Unable to get mobile number on these devices
- App crashing issue on Android 12 HOT 6
- getting error while reading phone number in react native
- Not detecting SMS when used in react-native module library
- android app is crashing with error { Fatal Exception: java.lang.VerifyError }
- Un able to retrieve message in release mode react-native-sms-retriever
- Unable to retrieve SMS with correct HASH.
- how to resolve TASK_FAILURE ERROR_TYPE of startSmsRetriever() in android 13 HOT 1
- [com.google.android.gms:play-services-safetynet:17.0.0] Is this issue related to this library? HOT 1
- Still maintained ?
- Already managing a GoogleApiClient with id 0
- not working on android 13 samsung device
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-sms-retriever.