Skip to content
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

Closed
mikicleverppc opened this issue Mar 10, 2021 · 8 comments · Fixed by #99
Closed

iOS initialization on SDK 9.0.0 #89

mikicleverppc opened this issue Mar 10, 2021 · 8 comments · Fixed by #99

Comments

@mikicleverppc
Copy link

It seems that the autoInitEnabled has been removed on SDK version 9.0.0, as you can see on changelog

After 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

@jun-exposure
Copy link

Hi, have you found a solution?

@andrewjallenuoft
Copy link

I can also confirm that the most recent version works on Android but not iOS.

@jun-exposure
Copy link

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.

@cKreymborg
Copy link

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.

@jun-exposure
Copy link

@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.

@DennisAlund
Copy link
Member

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 🤗

@jun-exposure
Copy link

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.

@DennisAlund
Copy link
Member

Solved in version: 0.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants