Ответ 1
Я думаю, вы можете использовать следующий метод:
- Внедрить пользовательский
ParsePushBroadcastReceiver
- Переопределить
getNotification(Context context, Intent intent)
- Установить цвет уведомления
Вот пример того, как я это сделал:
public class PushBroadcastReceiver extends ParsePushBroadcastReceiver {
@Override
protected Notification getNotification(Context context, Intent intent) {
Notification notification = super.getNotification(context, intent);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
notification.color = context.getResources().getColor(R.color.your_background_color);
}
return notification;
}
}