firebase / firebase/firebase-cpp-sdk

[Bug] Mobile OTP not sent

未关闭
#1,424 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: auth needs-attention type: question
主要语言
C++
星标
326
派生
137
平均合并
3 天 9 小时
30 天内合并 PR
5

描述

### [REQUIRED] Please fill in the following fields:

* Pre-built SDK from the [website](https://firebase.google.com/download/cpp) or open-source from this repo: from Website
* Firebase C++ SDK version: 11.3.0
* Problematic Firebase Component: Auth
* Other Firebase Components in use: Auth
* Platform you are using the C++ SDK on: Android
* Platform you are targeting: Android, iOS

### [REQUIRED] Please describe the issue here:

I am using QT framework along with Firebase SDK version (11.3) to get PhoneNumber Authentication OTP. I am giving correct format of 10 digit Phone number with "+countrycode". I follow the same procedure mentioned in the Firebase documenation for C++.

#### Steps to reproduce:

When i called the below VerifyPhoneNumber function, the OnCodeSent() function being called and it is confirming that the phone_listener is working fine. However, I am not able to receive the OTP to the mobile Number. I tried with nearly 3 phone numbers and same issue exists. Also, i do not get any error from Firebase as a Notification in the console.

So, i am clueless where it is going wrong. I have already done the project settings in Firebase and enable phoneNumber authentication.

The code is given below

#### Relevant Code:

```
// TODO(you): code here to reproduce the problem

localmobile = "+918939608135";
PhoneListener phone_listener;
firebase::auth::PhoneAuthOptions options;
options.timeout_milliseconds = 30;
options.phone_number = localmobile.toUtf8().constData();
qDebug()<< "options.phone_number"<< options.phone_number;
firebase::auth::PhoneAuthProvider& phone_provider = firebase::auth::PhoneAuthProvider::GetInstance(m_auth);
phone_provider.VerifyPhoneNumber(options, &phone_listener);
```

贡献指南

打开贡献指南

调研方向

从 Firebase Auth PhoneAuthProvider::VerifyPhoneNumber 调用及其 PhoneListener 回调开始,使用报告中描述的 Android 和 iOS 目标。检查文档中的电话身份验证项目设置以及 OnCodeSent 路径;完成的标准是通过完整的测试用例重现缺失的 OTP,并确定 SDK 或配置中的可执行原因。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, firebase
领域
authentication, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。