Skip to content

In app messages

Alexander Boldyrev edited this page Oct 30, 2024 · 1 revision

Intro

In-App messages are a type of communication tool with mobile users that includes banners, pop-ups and other formats that appear on screen of mobile applications while users are interacting with it. Read more documentation

Notice

Previously known as Full-featured In-App notifications.

In-App messages

Feature is available since 9.0.0 version, Huawei SDK 6.0.0

Enabling In-App messages

In-App messages are disabled by default. To enable them, you need to call .withFullFeaturedInApps(). Without calling this method, In-App messages will trigger the MESSAGE_RECEIVED broadcast event but will not be displayed within the WebView.

Notice

Enabling this feature also enables JavaScript execution on the webView for the feature proper work

    MobileMessaging.Builder(application)
        .withFullFeaturedInApps()
        .build()
expand to see Java code

new MobileMessaging.Builder(application)
        .withFullFeaturedInApps()
        .build();

Send notification

After Mobile Messaging SDK is integrated into your app, you just need to create a Flow in Infobip Customer Portal, choose "Send In-app message" element and select "New Message", In-App message Editor will be opened, where you can create In-App message according to your preferences.

In-App message types
Banner Pop-up Fullscreen
Banner Popup Fullscreen

Handling tap on In-App messages

Following on-tap actions are supported for the Banner and for the action buttons of other In-App message types:

More information can be found on the How to define specific action on notification or in-app primary button tap(open url, deeplink)?

Additionally, MobileMessaging SDK will trigger:

Additional notes

  • If you do not enable the feature or use older versions of the Mobile Messaging SDK without this feature support, the messages will be received, but will not be displayed. The Broadcast event MESSAGE_RECEIVED will be triggered.

  • For In-App messages, the Message object in the field body contains text "In-App" for technical reasons, but this field won't be involved in the process of displaying an In-App message in the WebView.

  • For In-App messages, the Message object in the field silent will always be set to "true".

Disable In-App messages

It's possible to disable In-App messages and Mirror push notifications, for further details check this page - Disable In-App notifications.

Clone this wiki locally