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

后端 未结 6 1688
难免孤独
难免孤独 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:18

    I had the same problem by using

    SMSRETRIEVERAPI

    I got the otp for debug build but when I pushed that to playstore I would not auto read the otp.Actually it will generate the hashkey based on your application build variants type.So Inorder to auto read your otp you will change the your hashkey in your server that will be generated in release mode.

    So find the Hashkey in release mode and update it in your server.Thats it you will get It.

提交回复
热议问题