Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!

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