Open onmyway133 opened 2 years ago
When user taps on push notification, depending on app state
SceneDelegate
Checking UIScene.ConnectionOptions.notificationResponse?.notification.request.content.userInfo in scene(_:willConnectTo:options:)
UIScene.ConnectionOptions.notificationResponse?.notification.request.content.userInfo
scene(_:willConnectTo:options:)
UNUserNotificationCenter
Checking UNNotificationResponse.notification.request.content.userInfo in userNotificationCenter(_:didReceive:withCompletionHandler:)
UNNotificationResponse.notification.request.content.userInfo
userNotificationCenter(_:didReceive:withCompletionHandler:)
When user taps on push notification, depending on app state
SceneDelegate
Checking
UIScene.ConnectionOptions.notificationResponse?.notification.request.content.userInfo
inscene(_:willConnectTo:options:)
UNUserNotificationCenter
Checking
UNNotificationResponse.notification.request.content.userInfo
inuserNotificationCenter(_:didReceive:withCompletionHandler:)
Read more