Skip to content

Question: initializeSDK deprecation #1731

@chwo

Description

@chwo

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions