- Prompt User actions like subscribing to push notifications or updating their location
- Promote new or underutilized features to targeted Users
- Display announcements and news in real time without releasing an app update
- Create surveys and carousels
- Help with onboarding and educational content

Setup and requirements
You must have the OneSignal SDK installed in your app to use in-app messages. Once the SDK is integrated, you can create and send in-app messages from the OneSignal dashboard without writing any code. The SDK also provides methods for advanced use cases like:- Triggering the message at specific times
- Click handling and deep linking
- Pausing the message
- Lifecycle management
Mobile SDK setup
Add OneSignal to your mobile app codebase.
In-app message SDK methods
Access trigger, click handler, and lifecycle APIs.
In-app triggers
Control when messages appear based on User behavior or app activity.
In-app click actions
Define what happens when Users interact with your message.
Send in-app messages
You can send in-app messages from the OneSignal dashboard and within Journeys.Select the message channel
On the left sidebar, select + Create… > In-App or at the top right corner, select New Message > New In-App. You can also navigate to Messages > In-App to see previous dashboard-created messages.

Choose a composition method
Choose either the Block Editor or HTML Editor, or use pre-built Templates.
Set the target audience
Select which Users receive the message. You can include and exclude Segments to target specific Users.
- Send to default segment: Defaults to all “Subscribed Users” if none set.
- Send to specific segments: Include and exclude Segments explicitly. Multiple Segments have an “OR” relationship; duplicate Subscriptions are automatically removed.
In-app messages are delivered to all mobile Subscriptions in the Segment, regardless of push opt-in status. However, if your message contains a push prompt click action, it will not show to subscribed (opted-in) mobile Subscriptions.

Message design
Use the visual drag-and-drop editor or the HTML editor for more control.
Design with drag-and-drop
Use the visual editor to quickly build messages.
Design with HTML
Full control for developers to customize messages.
Pre-built HTML templates
Start from tested layouts and campaigns.
In-app JavaScript APIs for HTML
Add OneSignal click actions to your HTML messages.
Message personalization
Add dynamic content to personalize messages for each User.
Multi-language messaging
Localize your content for global audiences.
Click actions
Customize what happens when Users click elements in your message.
Click actions
Configure what happens when Users click elements in your message.
Event Streams
Track interactions with the message.
SDK click handler
React to click events with the mobile SDK.
Deep linking
Navigate Users to specific screens on click.
Triggers
Define when messages should appear during app sessions.
- On app open: Display when the User launches the app.
- Session duration: Delay a set number of seconds after app open.
- Since last message: Delay a set time after the last in-app message was shown.
- Custom triggers: Controlled via the SDK
addTrigger(s)method for precise timing based on User behavior.
Dismiss behavior
Messages can dismiss:- On User interaction (click, swipe)
- After a set time (auto-dismiss)

Schedule and frequency
- Start showing: When the message becomes eligible to display
- Stop showing: Set an end date/time or “Show forever”
Display frequency
- Only once (default)
- Every time trigger conditions are met
- Multiple times with custom repeat logic
- Show 2 times with a 1 hour gap
- Show 12 times with a 30 day gap

How in-app messages are shown
In-app messages are not actively pushed. Instead, they’re pulled at app start based on audience, then displayed based on trigger logic.
- The User meets audience criteria before a new session starts.
- A new session starts when the User opens your app after it has been in the background or closed for at least 30 seconds.
- If the User has the app open when the message goes live or enters the Segment during the same session, they must close or background the app for at least 30 seconds to be eligible.
- The trigger conditions are met.
- The scheduled time and frequency are valid.
Testing
Add verbose logging to your app
Add the
setLogLevel method set to Verbose in your app to get more detailed logs.Make sure your Subscription is in the Segment
As explained in How in-app messages are shown, the User must match the audience criteria before a new session starts.
- See Find devices and set test Users if you don’t know your device’s Subscription ID.
- Make sure your device’s Subscription is in the included Segment(s) and not in the excluded Segment(s).
Close or background the app for at least 30 seconds
This ensures you open the app to create a new session and become eligible for the message.
Check trigger conditions
Make sure you satisfy the triggers for the message to be shown.
Check the schedule and frequency
- Make sure the “Start showing” and “Stop showing” dates are set correctly.
- Set display frequency to “Every time trigger conditions are satisfied” while testing.
Test and preview
The Test & Preview button sends a push notification to your selected test device. When you click the push to open the app, the in-app message displays. Requirements and notes:- Your device must be a test User
- Your device must be subscribed to push — test in-app messages are triggered via push notification
- Push is only sent for testing purposes and will not be sent when the message is live
- Tag substitution does not work for test in-app messages
- If you are not seeing the message, follow the testing steps above
Need help?Chat with our Support team or email
support@onesignal.comPlease include:- Details of the issue you’re experiencing and steps to reproduce if available
- Your OneSignal App ID
- The External ID or Subscription ID if applicable
- The URL to the message you tested in the OneSignal Dashboard if applicable
- Any relevant logs or error messages
Tutorials and use cases
Personalize in-app messages
Personalize your in-app message content with Tags.
Target outdated app versions
Prompt Users to update their app.
App store review prompts
Increase your ratings with timely review requests.
Create User surveys
Collect feedback inside your app.
Push permission prompts
Improve push opt-in rates with pre-permission prompts.
Location permission prompts
Ask Users to enable location tracking.
Set up a tutorial
Guide Users through new features of your app.