ios push tracking - MoEngage

13 downloads 235 Views 1MB Size Report
MoEngage Push Notification Tracking. In Action. As seen above, when a notification reaches the user's device, the MoEnga
Guide to Tracking Push Notification Delivery on iOS

Introduction iOS 10 onwards, MoEngage found out a novel way of tracking notification delivery on iOS devices using Notification Service Extension and App Groups.   Notification Service app extension, lets you customize the content of a remote notification before it is delivered to the user. The same extension can be used to send images, gifs and videos along with the notification. (Refer to following doc to support iOS Rich Notification in your App.) 
 Now, using the same extension and following these simple steps listed below you can enable Push delivery tracking in your iOS App.

MoEngage Push Notification Tracking In Action

As seen above, when a notification reaches the user’s device, the MoEngage system, using the inbuilt feedback loop triggers an event back to the MoEngage server, confirming the notification delivery.

Step 1 Visit the ‘Capabilities’ tab of your Xcode Project. Enable ‘App Groups’ for App target. Select one of the App Group IDs or create one if you do not see one. Please refer to the below image.

Step 2 Repeat the previous step for Notification Service Extension target. Please note: Select the same App Group ID which was configured for App target.

Step 3 Pass the App Group IDs to MoEngage in the App target using the following method :
 MoEngage.setAppGroupID(selected_app_group_id) 


As a last step, do the same in Notification Service Extension target with MORichNotification using the following method :
 
 MORichNotification.setAppGroupID(selected_app_group_id) 


For more info on implementation refer to our developer doc. 
 




Once this is done, as soon as a notification is received on device by OS, we pass on the message to MoEngage server about the successful delivery using the Notification Service Extension.

Thank You