forked from Ivasoft/mattermost-mobile
Show local notification when replying to PN fails (#2142)
This commit is contained in:
committed by
Saturnino Abril
parent
1d37f9bbec
commit
46b6687d1f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user