Show local notification when replying to PN fails (#2142)

This commit is contained in:
Elias Nahum
2018-09-20 13:58:21 -03:00
committed by Saturnino Abril
parent 1d37f9bbec
commit 46b6687d1f
7 changed files with 62 additions and 29 deletions

View File

@@ -149,7 +149,7 @@ public class CustomPushNotification extends PushNotification {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(CHANNEL_ID,
CHANNEL_NAME,
NotificationManager.IMPORTANCE_DEFAULT);
NotificationManager.IMPORTANCE_HIGH);
final NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.createNotificationChannel(channel);
notification.setChannelId(CHANNEL_ID);