released apk
Hash key generated is not working for released apk. Do we have different keys for released and debug mode. What changes in program we need to make to get the key for released mode.
Facing the related issue with SMS Retriever API. Once the application is downloaded from the play store the automatic msg reading is not working.
I'm also facing the same issue. I've generated the haskey using AppSignatureHelper class and it is working fine in release mode also. But when I downloaded the apk from playstore, it is not working
Go to build gradient ->and change debugging mode to release mode -> now again run the code and you will get a new key.
It is working in release mode, when i download the apk from playstore it is not working. Google App Signing is enabled for my app. Is this the case, it is not working?
@PemmasaniRajesh It's the same issue I am facing. Any solution to this problem?.
API is working for debug and release build but once uploaded to playstore with Google App Signing is enabled SMS Retrieval API stop working. I even tried generating the hashkey using AppSignatureHelper from the playstore downloaded build and still, I am facing the same issue.
Go to build gradient ->and change debugging mode to release mode -> now again run the code and you will get a new key.
@shikhakothiyal It will work for release and debug build. We are facing this issue when the same build is downloaded from playstore.
Facing same issue the API is working fine for release and debug build and does not work when i downloaded from Play Store.
Are there any messages in the logs?
@ithinkihaveacat Issue exists only for the play store build so I'm not able to extract any logs.
keep log for playstore build and check hash key generated.Because signed apk,debug apk and playstore build apk have different hash keys.Give that hash key of playstore build to backend folks.
keep log for playstore build and check hash key generated.Because signed apk,debug apk and playstore build apk have different hash keys.Give that hash key of playstore build to backend folks.
Yes i tried that but still same issue
keep log for playstore build and check hash key generated.Because signed apk,debug apk and playstore build apk have different hash keys.Give that hash key of playstore build to backend folks.
Yeah this is working for me....
keep log for playstore build and check hash key generated.Because signed apk,debug apk and playstore build apk have different hash keys.Give that hash key of playstore build to backend folks.
Yeah this is working for me....
@PemmasaniRajesh Are you generating Hash key using AppSignatureHelper class ?
I'm facing the same issue. It is working fine in debug build as I'm using AppSignatureHelper for hash key. I used the following command to generate the hash for signed build:
keytool -exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myapp cat | sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11`
But SMS is not getting auto retrieved. Is there any solution for the issue?
I'm facing the same issue. It is working fine in debug build as I'm using AppSignatureHelper for hash key. I used the following command to generate the hash for signed build:
keytool-exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myappcat| sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11`But SMS is not getting auto retrieved. Is there any solution for the issue?
Use this ruby script and get hash key it worked fine for me https://github.com/michalbrz/sms-retriever-hash-generator/blob/master/google_play_sign.rb
Facing same issue the API is working fine for release and debug build and does not work when i downloaded from Play Store.
So i found the solution, i have provide the play store generated hash to backend. For generate hash key on playstore, i have used AppSignatureHelper class and make Toast for the generated hash key and upload this build on play store. After successfully rollout, i have download the build. Now Toast will show with the playstore generated hash key, provide this key to backend. It is working fine for me.
I am using SMS API for read OTP, I have uploaded build on play store and install in mobile from play store, first time message was not read but when i kill application and run again it is work, Why?
I'm facing the same issue. It is working fine in debug build as I'm using AppSignatureHelper for hash key. I used the following command to generate the hash for signed build:
keytool-exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myappcat| sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11` But SMS is not getting auto retrieved. Is there any solution for the issue?Use this ruby script and get hash key it worked fine for me https://github.com/michalbrz/sms-retriever-hash-generator/blob/master/google_play_sign.rb
When i am running this file this way ruby google_play_sign.rb --package com.your.app --google-play-key deployment_key.der, and ruby google_play_sign.rb --package com.your.app --keystore keystore.jks --keystore-password mypassword --key-alias myalias
but getting this result 'shasum' is not recognized as an internal or external command, operable program or batch file. Your SMS hashcode is:
Change the build variant setting to release mode and regenerate your key. Use this key for verification and everything will work fine.
On Wed, Mar 27, 2019, 5:10 PM Taufik Hussain [email protected] wrote:
I'm facing the same issue. It is working fine in debug build as I'm using AppSignatureHelper for hash key. I used the following command to generate the hash for signed build: keytool -exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myapp cat | sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11` But SMS is not getting auto retrieved. Is there any solution for the issue?
Use this ruby script and get hash key it worked fine for me
https://github.com/michalbrz/sms-retriever-hash-generator/blob/master/google_play_sign.rb
How to run this file?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/googlesamples/android-credentials/issues/30#issuecomment-477111777, or mute the thread https://github.com/notifications/unsubscribe-auth/AbPHx4UfeXeFH2_YtcLJ6NwUW0bnER9fks5va1izgaJpZM4ZVxqA .
Change the build variant setting to release mode and regenerate your key. Use this key for verification and everything will work fine. … On Wed, Mar 27, 2019, 5:10 PM Taufik Hussain @.***> wrote: I'm facing the same issue. It is working fine in debug build as I'm using AppSignatureHelper for hash key. I used the following command to generate the hash for signed build: keytool -exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myapp cat | sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11` But SMS is not getting auto retrieved. Is there any solution for the issue? Use this ruby script and get hash key it worked fine for me https://github.com/michalbrz/sms-retriever-hash-generator/blob/master/google_play_sign.rb How to run this file? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#30 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AbPHx4UfeXeFH2_YtcLJ6NwUW0bnER9fks5va1izgaJpZM4ZVxqA .
I have changed build variant but getting same issue first time message was not read but when i kill application and run again its work why?? If i am wrong please suggest me.