Skip to main content
With Gleap, in-app notifications appear directly within the app when a new message is sent to a customer who has the app open. The same applies to news updates. We also support push notification. Please see the push notifications documentation for more information on it.

Disable in-app notifications

The following method allows you to disable the in app notifications.

Notification container offset

You can adjust the position of the in-app notification container by setting an offset in pixels:
  • x – Horizontal offset in pixels (positive values move the container to the right).
  • y – Vertical offset in pixels (positive values move the container down).

Inline banners

Inline banners (the banner style you pick in the Gleap dashboard) are shown at the top of the screen and cover the status bar. Floating banners float above the app as a card. By default both overlay your app. To push your app down below inline banners instead, like inline banners on the web, wrap it in GleapBannerArea (Android and iOS, SDK 19.3.0 or later):
While an inline banner is shown, the app moves down by the banner’s height (animated) and moves back up when the banner closes. The top safe-area padding the app sees in MediaQuery shrinks by the same amount, because the banner already covers the status bar, so AppBar and SafeArea don’t leave a gap. Floating banners still float. For custom layouts, Gleap.bannerHeight is a ValueListenable<double> with the height in logical pixels from the top edge (0 while no inline banner is shown):
On the web the Gleap JavaScript SDK pushes the page down itself.