Android Notifications

Default Notification

You can customize the appearance of the default OpenBack notifications in your application manifest using the following meta-data tags inside the <application> tag.

NameTypeDescription
com.openback.notification.ICONResourceThe resource ID for the notification icon.
com.openback.notification.ACCENT_COLORResourceThe resource ID for the notification color accent.
com.openback.notification.LARGE_ICONResourceThe resource ID for the notification large icon.
com.openback.notification.SOUNDResourceThe resource ID for the notification sound in res/raw.
com.openback.notification.CHANNEL_NAMEValueThe string name of the default notification channel (Android 8+).
com.openback.notification.CHANNEL_DESCRIPTIONValueThe string description of the default notification channel (Android 8+).

Example:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sample.app">
<application ...>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.openback.notification.ICON" android:resource="@drawable/ic_stat_name" />
<meta-data android:name="com.openback.notification.ACCENT_COLOR" android:resource="@color/colorPrimary" />
<meta-data android:name="com.openback.notification.LARGE_ICON" android:resource="@drawable/unicorn" />
<meta-data android:name="com.openback.notification.SOUND" android:resource="@raw/ding" />
<meta-data android:name="com.openback.notification.CHANNEL_NAME" android:value="@string/channel_name" />
<meta-data android:name="com.openback.notification.CHANNEL_DESCRIPTION" android:value="@string/channel_description" />
</application>
</manifest>