You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
12.5.1
Swift version
5.3
Installation platform & version
Swift Package Manager
Package
FacebookCore
Goals
Integrate facebook SDK into iOS app extension
Expected results
working facebook analytics in iOS app extension
Actual results
I have an iOS keyboard app extension, where I used to initialise facebook SDK for tracking / analytics.
After updating the SDK to the latest version, the app started to crash due to: 'As of v9.0, you must initialize the SDK prior to calling any methods or setting any properties.
After following the latest SDK changes, I was able to fix this issue in the main app by first calling ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions).
However the same can not be done in the app extension due to extensions different lifecycle, in other words in extension you don't have access to UIApplication.
I went through various solutions, but still can't make it work.
Would be great if there was a way to avoid calling ApplicationDelegate method by moving straight to Settings initialisation, which worked for me before the latest SDK changes.
Steps to reproduce
No response
Code samples & details
No response
The text was updated successfully, but these errors were encountered:
Checklist before submitting a bug report
Xcode version
12.5.1
Swift version
5.3
Installation platform & version
Swift Package Manager
Package
FacebookCore
Goals
Integrate facebook SDK into iOS app extension
Expected results
working facebook analytics in iOS app extension
Actual results
I have an iOS keyboard app extension, where I used to initialise facebook SDK for tracking / analytics.
After updating the SDK to the latest version, the app started to crash due to:
'As of v9.0, you must initialize the SDK prior to calling any methods or setting any properties.
After following the latest SDK changes, I was able to fix this issue in the main app by first calling
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
.However the same can not be done in the app extension due to extensions different lifecycle, in other words in extension you don't have access to UIApplication.
I went through various solutions, but still can't make it work.
Would be great if there was a way to avoid calling ApplicationDelegate method by moving straight to Settings initialisation, which worked for me before the latest SDK changes.
Steps to reproduce
No response
Code samples & details
No response
The text was updated successfully, but these errors were encountered: