In-app messages
Show banners, popups and full-screen messages inside your app or website.
In-app messages appear inside your app or website while someone is using it. Use them for announcements, offers, onboarding tips and prompts, without waiting for the user to allow notifications.
How it works
- You create a campaign in the portal and launch it.
- When the app opens, a page loads, or your app fires an event, the SDK asks PushFyre which messages apply to that device.
- The server keeps only the messages that are live, match the platform and trigger, include this user, and have not been shown too often.
- The SDK shows the first one on the current screen and reports when it is seen, tapped or closed.
Create a campaign
Open In-App Messages, Campaigns and choose New campaign. The page has six steps, with a live preview on the right.
| Step | What you set |
|---|---|
| Message type | A classic format (banner, modal, bottom sheet, full screen, image or carousel), an interactive widget, or a dynamic layout, and a campaign name. |
| Content | The text, image and button blocks, their style, the background, the close (×) icon, and the click actions. A carousel takes two to eight slides. The close icon can be switched off; banners and full-screen messages without a button keep it so users can always dismiss them. |
| Target audience | All users, specific segments, or custom conditions on tags and device properties. |
| Display settings | Platforms, triggers, web pages, frequency, maximum showings and priority. |
| Scheduling | An optional start and end time. |
| Review and launch | A summary and a check for anything missing. Launch, or save as a draft. |
Formats
| Format | Looks like |
|---|---|
| Banner | A slim bar at the top of the screen with an optional image and button. |
| Modal | A card in the centre over a dimmed screen. |
| Bottom sheet | A panel that rises from the bottom edge. |
| Full screen | Takes over the whole screen. |
| Image | One image that opens your link when tapped. |
| Carousel | Several slides with Back and Next, and a button on the last slide. |
| Dynamic layout | Text, image and button blocks you arrange yourself, placed at the top, in the centre, at the bottom or full screen. |
Designed content
Banner, modal, bottom sheet, full screen, image and dynamic layout messages are built from blocks. Add, reorder, hide or remove blocks in step 2, and the preview updates as you type.
| Block | What you can set |
|---|---|
| Text | The words, font, bold, italic, underline, colour, size, alignment and margins. |
| Image | A public https image link, its margins, and what a tap does. |
| Button | The label, text style, background colour, corner radius, border, shadow, alignment, margins, and what a tap does. |
The message itself has a background colour or image and padding. The close button can use your own https icon at a width and height you choose, or be switched off.
A tap on an image or button can open a link, open an app screen (a deep link such as myapp://orders), or close the message. Tick Dismiss on click to close the message after a link opens.
Click actions
Images, buttons, the background and the close button can each have up to eight click actions. They run when that part is tapped, before the link opens or the message closes. Choose Add click action, then one of:
| Action | What it does |
|---|---|
| Tag user | Sets a tag on this device, for example interest = shoes. The key is required. Use it to build segments from what people tapped. |
| Send outcome | Records an outcome on this device: Clicks, Confirmed, Session Duration, or a name of your own. Names are up to 80 letters, digits, spaces, or _ . : -. |
| Action name | Passes an action id such as open_cart to your code, so your app can do something PushFyre cannot. See Handle click actions in your code. |
Interactive widgets
A widget asks the person to do something inside the message. Each answer is stored with the campaign and shown in its report.
| Widget | What the person does |
|---|---|
| Poll | Picks one choice from a list you write. |
| Slider | Chooses a number between your minimum and maximum. |
| Scratch card | Scratches to reveal a gift. The gift is chosen before you send; scratching only reveals it. |
| Flash card | Taps to flip the card. You write both sides. |
| Feedback | Gives a score, optional reasons, and a short comment. |
| Yes / No | Answers a single yes or no question. |
| Checklist | Ticks several items. |
| Quiz | Answers questions that each have one correct choice. |
| Image choice | Picks one picture. |
| Countdown | Sees the time left until an end you set. |
| Copy code | Copies a code, such as a coupon. |
Who sees it
- All users includes visitors who never subscribed to push.
- Specific segments uses the segments you already built under Audience.
- Custom conditions match a property such as
country,language,platform,appVersion,browser, or any of your own tags. - Segments and conditions need a device that has registered with PushFyre, so they apply to people who opened an app or site that has the SDK.
When it appears
On Display Settings, choose one of these:
- On app open: shown when the app starts or the page loads.
- When certain conditions are satisfied during the session: shown while the app is open, once the conditions match. Groups are combined with Or. Rows inside a group are combined with And.
A condition row is one of:
- In-App Trigger: a key, is or is not, and a value. To show the message on a custom event, set the key to the event name and the value to
true. The app callsPushFyre.triggerwith that same name. The key must match the name exactly, including capitals. Event properties are not compared. For any other value, callPushFyre.addTrigger(key, value). - Session Duration: greater than or less than a number of seconds since the app opened.
- Duration Since Last In-App: greater than or less than a number of seconds since the last in-app message was shown.
The message can stay until the person dismisses it, or close itself after a number of seconds.
When Web is ticked, Web pages limits where it can appear. Leave the list empty and it can appear on every page. /pricing matches that page. /blog/* matches /blog and every page under it. The text after ? is ignored. Android and iOS ignore this list. On a site that changes the address without loading a new page, the web script asks again when the path changes.
Schedule
- Start showing: immediately, or at a specific time.
- Stop showing: forever, or at a specific time.
- How often: only once, every time the conditions are satisfied, or a set number of times with a gap in minutes, hours, days, or weeks.
For what to add to your app, every method and a test checklist, see In-app messages in your app.
From a journey
A journey step does not launch this campaign. Choosing a message copies its title, message, and link onto the step, or you write those fields on the step. The journey sends that copy to the person's devices for 7 days. The campaign's audience, trigger, format, and schedule are not used. A link is shown as an Open button.
Android
Update to the latest SDK. Messages appear after PushFyre.initialize, with no extra code.
// Show a message that is waiting for this event
PushFyre.trigger(context, "checkout_started")
// Pause or resume in-app messages for this process
PushFyre.setInAppMessagesEnabled(false)iOS
Update to the latest SDK. Messages appear after PushFyre.initialize, with no extra code.
// Show a message that is waiting for this event
PushFyre.trigger("checkout_started")
// Pause or resume in-app messages for this process
PushFyre.setInAppMessagesEnabled(false)Web
Pages that already load your PushFyre web script show messages automatically.
window.PushFyreDeferred = window.PushFyreDeferred || [];
PushFyreDeferred.push(function (PushFyre) {
// Show a message that is waiting for this event
PushFyre.trigger("checkout_started");
});Show a message on one screen
A phone app has no page addresses, so fire an event when that screen opens and make the event the campaign's trigger.
- In your app, call
PushFyre.triggerwhen the screen appears, for exampleportfolio_screen_opened. - In the campaign, open Display Settings, choose When certain conditions are satisfied during the session, and add an In-App Trigger with Key
portfolio_screen_openedand Valuetrue.
Buttons and links
A button can open a link, open an app screen, or just close the message. For links the SDK calls your tap handler first, with the action id in_app, so your app can route deep links itself. If it does not handle the link, the SDK opens it. An Action name click action reaches the same tap handler with your own action id and no link.
Results
In-App Messages, Analytics shows impressions, clicks, dismissals and click-through rate for the last 7, 30 or 90 days, and a table per campaign. The Campaigns list shows the same totals for each campaign.