Set Up Messaging Push Notifications for iOS
With push notifications, your customers can be alerted about messaging activity even when they aren't viewing the conversation. When an agent sends a message, your customer receives a notification on their device.
Notifications don't appear under the following circumstances:
- The app isn't installed
- The device isn't online
- The conversation is already displayed in the foreground
Before you add code in your app for notifications, set up Apple Push Notifications as described in the Apple documentation. Then follow Salesforce org setup instructions at Set Push Notifications for Messaging for In-App.
When the app successfully registers with the Apple Push Notification service (APNs), pass device token information to the Messaging for In-App server using
When handling a notification that arrives, call the
IAMNotification.showNotification method using the
aps key from the