Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

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

andriic68601447
Level 1
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