faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
241 stars 95 forks source link

Works fine in local ,But doesnt work on apkbuild #68

Closed sudeshvs closed 1 year ago

sudeshvs commented 1 year ago

it does not capture the otp from the message @faizalshap please buddy need help

pushpender-singh-ap commented 1 year ago

You should check the key hash after building the apk since the key hash changes when the apk is built.

sudeshvs commented 1 year ago

hey how can i get to know the hash key after the apk is build ? one more thing , will it also change when i upload aab to playConsole ?

@pushpender-singh-ap

faizalshap commented 1 year ago

Yes they are different @sudeshvs Run the app in release mode npx react-native run-android --variant=release

sudeshvs commented 1 year ago

thanks for replying @faizalshap i understood what you are saying and how to get the hash... ill close the issue once i slove it.... the apk version hash and abb version hash will be same right?? thanks bro @faizalshap

pushpender-singh-ap commented 1 year ago

thanks for replying @faizalshap i understood what you are saying and how to get the hash... ill close the issue once i slove it.... the apk version hash and abb version hash will be same right?? thanks bro @faizalshap

I think Hash depend on the sign key (keystore) if you don't change it's will same.

faizalshap commented 1 year ago

yes correct @pushpender-singh-ap @sudeshvs please let me know once you solve this. I will add this question to FAQ as this is probably one of the most confusing topic in this lib

sudeshvs commented 1 year ago

@faizalshap ... i want to know the hash key of my apk ...? i am not able to console.log the release apk is there a way to get the hash key?

pushpender-singh-ap commented 1 year ago

@sudeshvs replace console.log to alert("HASH:- ${hash})

sudeshvs commented 1 year ago

@pushpender-singh-ap i got the hash key... but couldnt find through alert.. but using array de-structure method...and yes the hash was different for the release apk..

pushpender-singh-ap commented 1 year ago

@sudeshvs finally you got the hash key

sudeshvs commented 1 year ago

Conclusion

I had Three different hash keys...

  1. debug hash key
  2. apk release hask key
  3. google singing hash key so people who face this Issue please check your hash key for different builds i.e 1.debug,apk and aab.release hash keys
sudeshvs commented 1 year ago

@faizalshap buddy my issue is sloved.. thanks bro's @faizalshap @pushpender-singh-ap

faizalshap commented 1 year ago

Ok great @sudeshvs I will put some way to get the hash more easily and update the readme

sudeshvs commented 1 year ago

@faizalshap ...that would be awesome