I worked on sms retriever API and it worked successfully on debug mode but not in signed build and playstore app the sms retriever api was not picking up the code automatically. I tried different techniques to generate the 11 digit code for playstore but it didn't worked. I even downloaded my app signing certificate from Google Play COnsole and generated 11 digit code from that .der certififcate convert it to .jks file and got hash key from it but it did not worked as well.
i have tried the solution provided by this link.
How to generate 11 char hash key for Sms Retriever with Google App signing