Expand my Community achievements bar.

iOS mobile SDK collectLaunchInfo doesn't track push notification being opened

Avatar

Level 1

Hello folks!
I tried to track when the application launched through push notification click. I tried to call collect launch info when receive push notification, I tried to debug, this code is executing correctly, but there is no tracking appears. Here is example how I do it 

extension AppDelegate: UNUserNotificationCenterDelegate {

    func userNotificationCenter(_ center: UNUserNotificationCenter,

                                didReceive response: UNNotificationResponse,

                                withCompletionHandler completionHandler: @escaping () -> Void) {

        

        if UIApplication.shared.applicationState != .active {

            ACPCore.collectLaunchInfo(response.notification.request.content.userInfo)

        }

        completionHandler()

    }

0 Replies