[ad_1]
I’ve carried out Common Hyperlinks in my app and it opens when particular hyperlinks are clicked in emails, messages and so forth.
Now I am making an attempt to deal with this occasions however with no success at this level.
Any concepts what am I doing flawed?
This is part of what I’ve tried thus far in my AppDelegate:
import Firebase
import FirebaseMessaging
import UserNotificationsUI
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, MessagingDelegate, NSUserActivityDelegate {
// ... register for notifications
func software(_ software: UIApplication, proceed userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
{
print("Take a look at 1") // Would not print something
return true
}
func software(software: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool
{
print("Take a look at 2") // Would not print something
return true
}
}
extension AppDelegate: UNUserNotificationCenterDelegate {
// ... deal with notifications
}
P.S. I am utilizing Swift 5 on xCode 14
[ad_2]
