Support Home > SDK Integration > iOS – SDK Integration > iOS – Push Notification

iOS – Push Notification


Integrate your app with Kochava’s Push Notifications Service.

Overview

The following builds upon Apple’s remote notifications capability, as outlined here. You can use Kochava’s Push Notifications Service to send remote notifications to your apps, as well as track app uninstalls and other analytics.

Integration

The following assumes that you have already integrated the Kochava iOS or tvOS SDK. For more information see iOS/tvOS – SDK Integration.

  1. Add the Remote Notifications Device Token.
  2. For your instance of class KochavaTracker, call instance method addRemoteNotificationsDeviceToken(_:) and pass the device token provided by the operating system.

     

  3. Send Push Opened Events.
  4. When your app is opened through a push notification, you may create and send an instance of class KochavaEvent to track that this occurred. The event type should be of type .pushOpened. The event payload should contain the response.notification.request.content.userInfo, so that the event can be attributed to a campaign. It is also recommended that you pass the response.actionIdentifier, so that you may track what action the user selected.

     

  5. Activate Push Notifications with Kochava.
  6. Push Notifications must be activated on your Kochava dashboard. From there you may also configure push notification campaigns. For more information see our iOS Push Notification support documentation.

  7. Optionally clear your application icon badge number.
  8. On your Kochava dashboard you may indicate that you want the application icon badge number set when push notifications are sent. If you enable this option you should be prepared to clear your badge number when your application becomes active, or at some other appropriate time. For more information see instance property applicationIconBadgeNumber.

 
 

Last Modified: Oct 17, 2018 at 12:42 pm