Google SMS Retriever API 在土耳其无法使用

Google SMS Retriever API doesn't work in Turkey

作为土耳其的 Android 开发人员,我们遇到了关于 Google SMS Retriever API 的问题。我们不能使用这个 API。 https://developers.google.com/identity/sms-retriever/

API 表示 "End with an 11-character hash string that identifies your app"。问题从这里开始。因为,根据土耳其法律 "If you are a company and you want to send sms your customers, then you need to add a your company code like BXXX to end of sms"。短信看起来像这样;

这里有冲突。我们需要将公司代码添加到短信的末尾,但 API 还想将哈希码添加到短信的末尾。我们如何解决这个问题?为什么要到最后呢?发短信应该就够了。

这是@Cafer Mert Ceyhan 报告的一个已知问题,现在已修复。将依赖项更新为以下指定版本:

implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.google.android.gms:play-services-auth-api-phone:17.4.0'

感谢 Mert 向 Google 报告。