PushFyreAccelerate. Ignite. Broadcast.

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

  1. You create a campaign in the portal and launch it.
  2. When the app opens, a page loads, or your app fires an event, the SDK asks PushFyre which messages apply to that device.
  3. The server keeps only the messages that are live, match the platform and trigger, include this user, and have not been shown too often.
  4. The SDK shows the first one on the current screen and reports when it is seen, tapped or closed.
There is no always-open connection. Messages are fetched when the app opens or an event fires, so a message you launch appears the next time that happens, not instantly on a screen that is already open.

Create a campaign

Open In-App Messages, Campaigns and choose New campaign. The page has six steps, with a live preview on the right.

StepWhat you set
Message typeA classic format (banner, modal, bottom sheet, full screen, image or carousel), an interactive widget, or a dynamic layout, and a campaign name.
ContentThe 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 audienceAll users, specific segments, or custom conditions on tags and device properties.
Display settingsPlatforms, triggers, web pages, frequency, maximum showings and priority.
SchedulingAn optional start and end time.
Review and launchA summary and a check for anything missing. Launch, or save as a draft.

Formats

FormatLooks like
BannerA slim bar at the top of the screen with an optional image and button.
ModalA card in the centre over a dimmed screen.
Bottom sheetA panel that rises from the bottom edge.
Full screenTakes over the whole screen.
ImageOne image that opens your link when tapped.
CarouselSeveral slides with Back and Next, and a button on the last slide.
Dynamic layoutText, 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.

BlockWhat you can set
TextThe words, font, bold, italic, underline, colour, size, alignment and margins.
ImageA public https image link, its margins, and what a tap does.
ButtonThe 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:

ActionWhat it does
Tag userSets a tag on this device, for example interest = shoes. The key is required. Use it to build segments from what people tapped.
Send outcomeRecords 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 namePasses 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.
A campaign with an empty tag key or an empty action name cannot be launched. The review step lists what is missing.

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.

WidgetWhat the person does
PollPicks one choice from a list you write.
SliderChooses a number between your minimum and maximum.
Scratch cardScratches to reveal a gift. The gift is chosen before you send; scratching only reveals it.
Flash cardTaps to flip the card. You write both sides.
FeedbackGives a score, optional reasons, and a short comment.
Yes / NoAnswers a single yes or no question.
ChecklistTicks several items.
QuizAnswers questions that each have one correct choice.
Image choicePicks one picture.
CountdownSees the time left until an end you set.
Copy codeCopies a code, such as a coupon.
Widgets need a recent SDK on every platform. Older SDK builds are not sent widget campaigns, so those users simply do not see them.

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 calls PushFyre.trigger with that same name. The key must match the name exactly, including capitals. Event properties are not compared. For any other value, call PushFyre.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.

kotlin
// 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.

swift
// 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.

javascript
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.

  1. In your app, call PushFyre.trigger when the screen appears, for example portfolio_screen_opened.
  2. 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_opened and Value true.

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.

Images must be public https links. A message with a broken image link still shows, without the picture.