Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

SDK iOS 4.14.1 : func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) #41

@charliefancelli

Description

@charliefancelli

Hi,

In you SDK, the function Tune.handleOpen(url, sourceApplication: sourceApplication) need a URL and a String! but with SWIFT 3.2, the sourceApplication is now optional.

Can we do that to avoid crashes ?

func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
    
    // When the app is opened due to a deep link, call the Tune deep link setter
    if let s = sourceApplication {
      Tune.handleOpen(url, sourceApplication: s)
    }
    else{
      Tune.handleOpen(url, sourceApplication: nil)
    }
...
}

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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