Android Push Notification Channels were introduced in Android Oreo (Android 8.0 / API Level 26) to provide a unified system to help users manage their notifications. Users can now change preferences for an individual notification channel (such as opt-outs, vibration, and so on) instead of changing it for all notifications from a specific app.
What Do You Need to Do?
If your app targets Android Oreo (Android 8.0 / API level 26) and later, you must implement one or more notification channels to display notifications to your users. If you do not target Android Oreo but your app is used on devices running Android Oreo, your app behaves the same as it would on devices running Android 7.1 (API level 25) or older.
To use notification channels:
- Update the Android SDK version of MoEngage to v8.0.00.
- After you update the SDK version, add your existing notification channels created by your App developers on MoEngage dashboard to use them in your campaigns. You can add them while creating your campaigns by clicking + Manage notification channel in the Notification Channel drop-down list in Android messaging.
- After you add a notification channel, you can select and save it as Default (optional) to populate it as the default selection for the campaigns that you will create in the future.
- Select any one of the channels for your campaign as you deem fit. All notifications posted to the same notification channel have the same behavior.
If an invalid channel ID is added or you miss adding one, MoEngage uses the "general" channel (a MoEngage fallback channel) to target your users on Android 8.0 (API level 26) and later.
info |
Information MoEngage does not allow you to create, read, update, or delete any notification channel for/from your app on the fly. Your app developers must create, update, or delete the notification channels if required. |
How Can End Users Control Their Experience?
App developers cannot programmatically modify the behavior of a notification channel after it is created and submitted to the notification manager. The user is in charge of those settings after creation.
End users can visit Settings or long-press a notification to change these behaviors, or they can even block a notification channel at any time. When a user modifies the behavior for any of the following characteristics, it applies to the notification channel:
- Importance
- Sound
- Lights
- Vibration
- Show on lock-screen
- Override do not disturb