By following a few simple steps, you can use Insert to send and receive push notifications in your app. Before you complete the appropriate configuration steps in Insert, be sure that your iOS app is properly configured for push notifications. There are many good articles that describe how to implement push notifications in iOS, and you can also consult Apple documentation.
After ensuring your app is enabled to receive push notifications, you need to complete two steps that are specific to Insert. First, you need to provide your APNS certificate in P12 format so that Insert can send push notifications to the app. Second, you need to add two lines of code to your app source.
To provide the P12 certificate, navigate to the Apps page and then click on your app in the list. Next, click the App Details link in the menu on the left. You will see a section called Push Settings. Click the edit icon, and then upload the appropriate P12 certificate and specify the password you used when creating the certificate.
Note that you must upload either the Development or Production certificate to use Insert push notifications. You may upload both.
Once you provide a valid P12 certificate, you need to add two lines of code to your app's source:
1) When registering to receive push notifications, you must pass the push notification token to the Insert service. You do this by setting the pushId property on the InsertManager instance in the application:didRegisterForRemoteNotificationsWithDeviceToken: function of your AppDelegate:
[InsertManager sharedManager].pushId = <device token>
InsertManager.sharedManager().pushId = <device token>
2) When your app receives the push notification, you must pass the notification object to Insert. You do this by adding the following code in the application:didReceiveRemoteNotification: function of your AppDelegate class:
[[InsertManager sharedManager] didReceiveRemoteNotification:userInfo];