I configured IOS for intercom correctly with APNS Key but still i didn't receive any notification, if the agent send a message to my iphone
Hey
For anyone else facing this issue - background mode push notification capabilities from Xcode needed to enabled along with some changes in AppDelegate.swift file, like below:
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { Intercom.setDeviceToken(deviceToken) NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: deviceToken) }
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { NotificationCenter.default.post(name: .capacitorDidFailToRegisterForRemoteNotifications, object: error) }
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: oAnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { NotificationCenter.default.post(name: Notification.Name.init("didReceiveRemoteNotification"), object: completionHandler, userInfo: userInfo) }
For more information on iOS Push Notifications, you can check out our Developer Documentation here
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.