-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS initialization on SDK 9.0.0 #89
Comments
Hi, have you found a solution? |
I can also confirm that the most recent version works on Android but not iOS. |
I added the code as described in FB's documentation step 6, including registering the Flutter plugin as an app delegate. Compiles and installs fine, but still no install events. Going to play around with it some more. |
Same problem here. 0.11.0 didn't work for me on ios. It didn't log any events. I downgraded to 0.10.0 and now it's working. |
@Maegondo thanks for the information re. 0.10.0. I can confirm it works with 0.10.0. I'm going to try to get initialization working with 0.11.0 and FB SDK 9. |
Thank you @jun-exposure please let me know if you find a solution. This sounds terrible and urgent. I'm currently under a bit of heavy workload elsewhere myself, so I really appreciate the support 🤗 |
Good news. I have a fix. FB's documentation is a bit misleading as it makes it look like calling their didFinishLaunchingWithOptions would initialize it implicitly. It finally occurred to me that they probably didn't update their documentation. Changing to an explicit call to initializeSDK did the trick. That's why it took me a little longer to get it working for what seems an easy change. @DennisAlund I'll create the PR from my personal github account. |
Solved in version: 0.11.2 |
It seems that the
autoInitEnabled
has been removed on SDK version 9.0.0, as you can see on changelogAfter upgrading to 0.11.0 version I'm getting this error after logEvent():
FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized.
Expected Behavior
SDK should initialize and log events.
Current Behavior
SDK is not being initialized
Possible Solution
The solution may be on iOS Doc Step 6
Your Environment
iOS 14.5 and library version 0.11.0
The text was updated successfully, but these errors were encountered: