Widget and In-App Messages

Pop-up and In-App Message Presentation Behavior

All push notifications in Netmera work automatically—no additional coding is required. However, you can customize pop-up presentations and listen to push callbacks.

By default, when a popup notification or in-app message is received:

  • If the app is in the foreground, the SDK displays pop-up notifications and in-app messages immediately.

  • If the app is in the background, the SDK shows them when the app returns to the foreground.

Receiving Popups and In-App Messages in the Background

To receive popups or in-app messages when the application is in the background, you need to enable Remote Notifications under Background Modes in Capabilities.

Pop-up Presentation Logic

If a pop-up is received when pop-up presentation is disabled by your code, SDK will store it, and present whenever pop-up presentation is re-enabled. If multiple pop-up notifications are received during that period, SDK stores the most recent notification, and present only that one.

Managing Pop-up Presentations

To enable or disable pop-up presentation, you need to call this methods

To show pop-up on the app start or everywhere in the app, please call Netmera.enablePopupPresentation(); to your index.js file.

Handle Widget URL's

Step 1: In order to use the widget URL callback, add these lines into AppDelegate.swift file.

No need extra implementation for Android.

Step 2: Handle widget URL's in React Native.

Last updated

Was this helpful?