Closed comtaler closed 7 years ago
Any update on this?
One more piece of info: it happens on both iOS 9 and iOS 10.
Anything? I have the same issue... FB redirects to blank page, no errors or warning in the log and no indication that anything went wrong, but it's not working. I've been through every trick on SO with no luck.
Looks like we missed this message, sorry about that. From my response on https://developers.facebook.com/bugs/992759727521507/
"We (Firebase / FPL at Google) found the issue today. It turns out that Unity's AppDelegate doesn't implement the new openURL selector but we swizzle it in (add it to the app delegate) on initialization. This results in the URL being handled by our openURL method which doesn't call Unity's legacy openURL selector and hence notify the Facebook SDK that a sign-in in complete. We'll cook up a workaround. In the meantime you can "fix" this by adding the following to UnityAppController.mm:
We have a fix lined up and are running through QA at the moment but this workaround should be fine until then.
Fantastic, thanks... This has been driving me nuts!
That post on FB must've been the only "blank screen FB login" question I haven't stumbled upon in my search :)...
/Niels
On 28 Apr 2017, at 16:13 , Stewart Miles notifications@github.com wrote:
Looks like we missed this message, sorry about that. From my response on https://developers.facebook.com/bugs/992759727521507/ https://developers.facebook.com/bugs/992759727521507/ "We (Firebase / FPL at Google) found the issue today. It turns out that Unity's AppDelegate doesn't implement the new openURL selector but we swizzle it in (add it to the app delegate) on initialization. This results in the URL being handled by our openURL method which doesn't call Unity's legacy openURL selector and hence notify the Facebook SDK that a sign-in in complete. We'll cook up a workaround. In the meantime you can "fix" this by adding the following to UnityAppController.mm:
(BOOL)application:(UIApplication )app openURL:(NSURL )url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> )options { NSString sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey]; id annotation = options[UIApplicationOpenURLOptionsAnnotationKey]; return [self application:app openURL:url sourceApplication:sourceApplication annotation:annotation]; } " We have a fix lined up and are running through QA at the moment but this workaround should be fine until then.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/firebase/quickstart-unity/issues/75#issuecomment-298008911, or mute the thread https://github.com/notifications/unsubscribe-auth/ACjDHtPGf0xNvwkN8wYXs4x2MOleCotVks5r0fPugaJpZM4M3OC5.
We have released version 3.0.2 of the Firebase Unity SDK, which fixes this issue. You can view the release notes and download the new version from http://firebase.google.com/docs/unity/setup.
I am experiencing the same problem as reported in issue #32 with the latest SDK. After connecting to facebook, it stays on the browser with a blank page and it does not return.
Unity version: 5.5.1p2 Facebook SDK version: 7.9.4 Invite SDK version: 3.0.1
I tested it with the sample invite project. Here is the console log: