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

Avatar

Avatar

andriic68601447

Avatar

andriic68601447

andriic68601447

23-03-2021

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()

    }

Accepted Solutions (0)

Answers (0)