Inbox SDK integration for iOS



iOS SDK Version Info

Inbox SDK integration is supported with iOS SDK 5.0+

This document explains how to download the In App Messaging SDK and steps to integrate the SDK and fetch In Box Messages in iOS Native application.

  1. Integrate In App SDK in the code which is explained in the tutorial below
    iOS SDK Integration Documentation

  2. Call the below mentioned method to start fetching In Box Messages.

  [[AppoxeeInapp shared] fetchAPXInBoxMessages];
AppoxeeInapp.shared()?.fetchAPXInBoxMessages() 

This will trigger the DMC call to fetch all inbox messages.

Delegate class of In App SDK will receive a delegate method call with all messages in an array. Messages are of object type APXInBoxMessage.

 #import <AppoxeeInapp/APXInBoxMessage.h> - (void)didReceiveInBoxMessages:(NSArray *)messages { APXInBoxMessage *message = messages[0]; }


3. Exposed properties of object

 

4. Handling In Box Actions will be handled in the same class where inbox message is displayed. 



Push + Inbox Handling

Dashboard update to achieve this functionality: 

<key, value>

<apx_inbox, messageId>



This  documentation includes details of how to use push notification to trigger an in box message inside the application. To achieve this feature we need to integrate two SDKs

1.  AppoxeeSDK: For getting the pushes in the application.
2.  AppoxeeInapp: For getting in box message object with details.


Steps to achieve the functionality:

1. Delegate opting class of AppoxeeSDK will receive the delegate method call when user clicks open the application with notification received. The delegate method call will receive a messageId of the inbox message to be displayed.

Once received the messageId, it has to be passed across to AppoxeeInAppSDK to fetch the message object with all details.


2. Once called In App SDK we will receive the message details object in the delegate listening class. This object can be used to display message details.