Showing the Inbox

One of the core parts of the Pulsate SDK is the Pulsate inbox. The message inbox is a fully featured interface that sits directly within your mobile App, it allows incoming campaign and conversation content to be rendered to your customers. It also allows customers to compose new messages directly to you.

373

In order to show the Feed / Inbox you need to get the Feed Navigation Controller and present it

PULPulsateManager* manager = [PULPulsateFactory getDefaultInstance];
UINavigationController* controller = [manager getFeedNavigationController];
[self presentViewController:controller animated:YES completion:^{
}];

The piece of code above will show the message inbox.

The message inbox can be closed by tapping on the Back Button.

The list of messages are fetched from the Pulsate server and cached locally for offline reading. Pulsate also offers campaign distribution to allow you to send custom campaigns via the message inbox.

❗️

Feed Orientation

We've designed the Pulsate Feed in Portrait mode in mind. It's highly recommended to use it in Portrait mode exclusively. Using landscape mode is possible, but not recommended for best UX experience.

1518

Enabling / Disabling users from creating new Threads

The Floating Action Button in the Feed allows users to create threads and send feedback from the App to Pulsate. By default this button is enabled, if you want to disable it all you need to do is call "setNewThreadButtonEnabled(false)". Make sure to call it in the onCreate methd of your Application.

// You can decide if you want the floating new thread button in Feed to be visible
// This is optional, the floating button is visible by default
[manager setNewThreadButtonEnabled:YES];

UINavigationController* pulsateFeedNavController = [pulsateManager getFeedNavigationController];

// present the Pulsate Navigation Controller
// You can decide if you want the floating new thread button in Feed to be visible
// This is optional, the floating button is visible by default
manager.newThreadButtonEnabled(true)

var pulsateFeedNavController: UINavigationController = pulsateManager.getFeedNavigationController()

// present the Pulsate Navigation Controller

Showing the Feed in a UISplitViewController

For bigger screens like iPads you might want to use the UISplitViewController to show the feed in size it was designed for.

Create a UISplitViewController either in the graphic designer or in code and just show the Pulsate Feed navigation controller in the detail pane. It’s that simple:

[mySplitViewController showDetailViewController:pulsateNavigationController sender:nil]


/*The Pulsate Feed was designed with iPhones in mind which are narrow, meanwhile iPads are very wide in Landscape mode. In order to make the detail pane more narrow:*/

mySplitViewController.maximumPrimaryColumnWidth = 1000000; // enter your maximum
mySplitViewController.preferredPrimaryColumnWidthFraction = 0.5 // it’ll be divided in half