The initializeSDK method was deprecated in the last release 9.2.0. See 813fa58
Summary: Moving towards more instance methods in ApplicationDelegate since most of the existing class methods already relied on the singleton shared.
"This method is called automatically from application:didFinishLaunchingWithOptions:. Please use that method instead. This one will be removed in a future release."
The deprecation message states that one should use application:didFinishLaunchingWithOptions: instead.
We have the use case that we do not initialize the Facebook SDK in UIApplicationDelegate.application:didFinishLaunchingWithOptions:. Instead we do it at a later time when the user has given its consent.
So when not in the UIApplicationDelegate life-cycle context it feels unintuitive to start the SDK with the FBSDKCoreKit.ApplicationDelegate.application:didFinishLaunchingWithOptions: method named after the UIApplicationDelegate life-cycle. Furthermore it requires to pass on the provided application and launchOptions to that later time.
What are your thoughts about this? Did you consider keeping the initializeSDK as an instance method?
The
initializeSDKmethod was deprecated in the last release9.2.0. See 813fa58The deprecation message states that one should use
application:didFinishLaunchingWithOptions:instead.We have the use case that we do not initialize the Facebook SDK in
UIApplicationDelegate.application:didFinishLaunchingWithOptions:. Instead we do it at a later time when the user has given its consent.So when not in the
UIApplicationDelegatelife-cycle context it feels unintuitive to start the SDK with theFBSDKCoreKit.ApplicationDelegate.application:didFinishLaunchingWithOptions:method named after theUIApplicationDelegatelife-cycle. Furthermore it requires to pass on the providedapplicationandlaunchOptionsto that later time.What are your thoughts about this? Did you consider keeping the
initializeSDKas an instance method?