jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
282 stars 174 forks source link

Getting tr: write error after getting 11 digit hash string #97

Open yash365 opened 3 years ago

yash365 commented 3 years ago

I followed all the using keytool mentioned here : https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string. in windows.

I got the 11 digit has string but it is not working and getting this output after following command: keytool -exportcert -alias PlayDeploymentCert -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

Getting the following warning message: Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format tr: write error

Don't know why "tr: write error" is coming ?

grahamsmith commented 3 years ago

Have you tried using the in built get app signature method that should give you the value?

yash365 commented 3 years ago

Hello @grahamsmith yes i tried that only at first the inbuilt method i.e. : final smscode = await SmsAutoFill().getAppSignature;

Use this sms format which mentioned: <#> ExampleApp: Your code is 123456 FA+9qCX9VSu

grahamsmith commented 3 years ago

Ah I don't run Windows.

The signature method should work for a release build without submitting to the Play Store. You just need to run the build locally.

yash365 commented 3 years ago

I tried that but didn't work.