Configuring Opt-In Type

Opt-In refers to the way the push permission is asked from the users on your webpage. MoEngage provides 3 push opt-in mechanisms which can be configured Dashboard --> Settings --> App --> Push under Notification Opt-in Configuration:

  • 1-Click Opt-In
  • Two Step Opt-In
  • Self Handled Opt-in

1-Click Opt-In

The SDK directly triggers the browser to show the push notification permission request.

2. Two Step Opt-In (Recommended)

Users are shown a HTML "soft-ask" which gauges user preference and proceeds to show the main browser permission upon allowed.

3. Self Handled Opt-in

An Advanced setting where you can selectively show the Browser Opt-in on specific pages or after certain actions. You have to call our function Moengage.call_web_push() from your script to show the Push permission. Click here for more details about self-handled opt-ins

<script type="text/javascript">
  // Moengage Initialization script here
  // Docs:

  // call to show the Chrome's push notification opt-in box.

4. Push Opt-in Re-appear Time

In case the users close the opt-in or banner/nudge, you can configure the time after which to show the opt-in again to the user. This is referred as Opt-in re-appear time as shown in the snapshot below.

5. Hide branding

You can hide the Moengage logo which appears on Soft Ask and Hard Ask Overlay by checking this box: