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 keep your content below inline banners (SDK 19.3.0 or later), register a banner height callback. It reports the height in dp from the top of the content view: when an inline banner is shown or resized (also on rotation), and 0 when it closes. In edge-to-edge apps the banner reaches up under the status bar, so the status bar is included. Floating banners report 0. Gleap.getInstance().getBannerHeight() returns the current value.