Why SMS Retriever API don't work in release mode?

后端 未结 6 1719
难免孤独
难免孤独 2020-12-31 06:27

I\'ve implemented the SMS Retriever API like in the google tutorials and in my debug Build Variant work fine. I can read the sms and get the code to the user ca

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 07:09

    Follow these steps to get the key for production:

    1. Go to the Build option.
    2. In the options, choose Select Build Variant.
    3. Then in the left corner, a dialog will open, from there Change Build Variant from debug to release.
    4. Click on run, then this dialog will open: Then this dialog will open(point 4 pic.)
    5. Click on Run, next click on Continue Anyway, then click on Yes then in the dialog In this dialog Click on the **+** in left bottom.
    6. Then fill these details: Then fill these details
    7. Now go to Build Types and follow this image: Then go to build types and follow the image
    8. And click ok.

    Now when you run the commands to get the hash through AppSignatureHelper Class, that key will be your production key.

提交回复
热议问题