我安装了Google新的Firebase SDK,我正在尝试使用Authentication SDK创建新用户。但是,我完全按照文档说的做了,但它不起作用。有什么意见或建议吗?
我有RegisterUserViewController.h中的身份验证代码
在AppDelegate.h中我还在应用程序中添加了[FIRApp configure]:didFinishLaunchingWithOptions;
这是RegisterUserViewController.h的代码:
// more code goes here.
choosePosition: function (position) {
//alert('Going to choosen position');
//$scope.query = position.name;
$scope.focus = false; // Hide div options from here.
// rest of your code.
},
// more code goes here.
这是我得到的错误:
错误域= FIRAuthErrorDomain代码= 17999“发生内部错误,打印并检查错误详细信息以获取更多信息。” UserInfo = 0x7f98fc4609d0 {NSUnderlyingError = 0x7f98fc4cf790“操作无法完成。(FIRAuthInternalErrorDomain错误3.)”,error_name = ERROR_INTERNAL_ERROR,NSLocalizedDescription =发生内部错误,打印并检查错误详细信息以获取更多信息。}
答案 0 :(得分:0)
我遇到了同样的错误,并通过在Google控制台上激活Identity Toolkit Api解决了这个问题https://console.developers.google.com/apis/api/identitytoolkit/overview?project=YOUR_PROJECT
答案 1 :(得分:0)