Skip to content

OneSignal InApp Messages

Non-Visible component
Category Requires Version
Social API 21, Android 5.0 Lollipop 1

Overview

A non-visible component for displaying and controlling in-app messages sent remotely using OneSignal. In-app messages are customizable, targeted messages that display within your mobile app.

Permissions

Events

Message Clicked

Called when the message is clicked.

Params
message ID Text
action ID Text
url Text
is Closing Message Boolean

Message Did Dismiss

Called after an in-app message has been dismissed.

Params
message ID Text

Message Did Display

Called after an in-app message has finished displaying.

Params
message ID Text

Message Will Dismiss

Called right before an in-app message is dismissed.

Params
message ID Text

Message Will Display

Called right before an in-app message is displayed.

Params
message ID Text

Methods

Add Trigger

Adds a new trigger with provided key-value pair for the current user.

Params
key Text
value Text

Remove Trigger

Removes the trigger with provided key for the current user.

Params
key Text

Properties

Pause InApp Messages

Boolean ➖ Write - Blocks

Prevent In-app messages from being displayed to the user. When set to true, no in-app messages will be presented. When set to false, any messages the user qualifies for will be presented to them at the appropriate time.