且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“此应用无权使用 Firebase 身份验证"在模拟器中

更新时间:2023-12-05 21:58:34

为了防止滥用 firebase 电话身份验证在模拟器中不起作用.

In order to prevent abuse the firebase phone authentication wont work in emulator.

但是如果你想要它用于测试目的,那么你应该添加使用一些在可在模拟器中运行的 Firebase 控制台中测试电话号码.

But if you want it for testing purpose then you should add use some testing phone number in firebase console that will work in emulator.

转到您的 Firebase 控制台 -> 身份验证 -> 登录方法 -> 电话并检查测试电话号码(可选)"字段.

Go to your firebase console -> Authentication -> SIGN-IN Method -> Phone and check the "Phone numbers for testing (optional)" field.