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,
Hi,
In you SDK, the function
Tune.handleOpen(url, sourceApplication: sourceApplication)
need aURL
and aString!
but with SWIFT 3.2, thesourceApplication
is now optional.Can we do that to avoid crashes ?