Skip to main content

Hi!
I’ve encountered an issue with configuring push notifications in Intercom on iOS.

I’m using the latest Intercom SDK (18.1.0). According to the documentation, I’ve added IntercomAutoIntegratePushNotifications with the value NO in Info.plist and am manually handling push notifications in the userNotificationCenter(_:didReceive:withCompletionHandler:) method as instructed:
 

func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
let userInfo = response.notification.request.content.userInfo
if Intercom.isIntercomPushNotification(userInfo) {
Intercom.handlePushNotification(userInfo)
}
completionHandler(.noData)
}

However, Intercom notifications are not being handled correctly - it seems like the Intercom.handlePushNotification(_:) function is not being triggered at all. Has anyone faced a similar issue with manually handling push notifications on iOS? I’d appreciate any advice or ideas on what might be going wrong.

Be the first to reply!

Reply