gpt4 book ai didi

ios - 使用 nativescript-plugin-firebase 使用 Facebook-app 登录失败,没有错误 #ios

转载 作者:行者123 更新时间:2023-12-01 19:39:16 26 4
gpt4 key购买 nike

当我使用“使用 Facebook 登录”登录我的应用并选择
“使用 Facebook 应用程序登录”(如图所示),
返回我的应用程序后,它没有任何 react 。

但是,如果我选择“使用电话号码或电子邮件地址登录”,它可以使用 firebase-nativescript 身份验证成功进行身份验证。
image
这是我发现的:
https://github.com/firebase/FirebaseUI-iOS/issues/577
说是版本问题。
但是,我的版本是没有问题的版本。

我当前的版本:

nativescript, tns-ios: "5.2.0",
nativescript-plugin-firebase: "8.3.2",

ios pods :
pod 'FBSDKCoreKit', '~> 4.38.0'
pod 'FBSDKLoginKit', '~> 4.38.0'

这是我的代表:
if(app.ios) {
const FBSdkDelegate = (function (_super) {
__extends(FBSdkDelegate, _super);
function FBSdkDelegate() {
_super.apply(this, arguments);
}
FBSdkDelegate.prototype.applicationDidFinishLaunchingWithOptions = (app, launchOptions) => {
return FBSDKApplicationDelegate.sharedInstance().applicationDidFinishLaunchingWithOptions(app, launchOptions);
};
FBSdkDelegate.prototype.applicationOpenURLSourceApplicationAnnotation = (app, url, sourceApplication, annotation) => {
return FBSDKApplicationDelegate.sharedInstance().applicationOpenURLSourceApplicationAnnotation(app, url, sourceApplication, annotation);
};
FBSdkDelegate.prototype.applicationDidBecomeActive = (app) => {
FBSDKAppEvents.activateApp();
};
FBSdkDelegate.ObjCProtocols = [UIApplicationDelegate];
return FBSdkDelegate;
})(UIResponder);

app.ios.delegate = FBSdkDelegate;
}

最佳答案

尝试删除 app.ios.delegate = FBSdkDelegate如下面的代码

if(app.ios) {
const FBSdkDelegate = (function (_super) {
__extends(FBSdkDelegate, _super);
function FBSdkDelegate() {
_super.apply(this, arguments);
}
FBSdkDelegate.prototype.applicationDidFinishLaunchingWithOptions = (app, launchOptions) => {
return FBSDKApplicationDelegate.sharedInstance().applicationDidFinishLaunchingWithOptions(app, launchOptions);
};
FBSdkDelegate.prototype.applicationOpenURLSourceApplicationAnnotation = (app, url, sourceApplication, annotation) => {
return FBSDKApplicationDelegate.sharedInstance().applicationOpenURLSourceApplicationAnnotation(app, url, sourceApplication, annotation);
};
FBSdkDelegate.prototype.applicationDidBecomeActive = (app) => {
FBSDKAppEvents.activateApp();
};
FBSdkDelegate.ObjCProtocols = [UIApplicationDelegate];
return FBSdkDelegate;
})(UIResponder);
}

类似的问题可以在这里找到
https://github.com/AntonioCuevaUrraco/nativescript-facebook-login/issues/27

希望这可以帮助!

关于ios - 使用 nativescript-plugin-firebase 使用 Facebook-app 登录失败,没有错误 #ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57205295/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com