From 8b41211f9a2c85d14f3212051fedba67bfae8c14 Mon Sep 17 00:00:00 2001 From: Brian Soumakian Date: Sun, 15 Apr 2018 15:40:25 -0700 Subject: [PATCH] Revert "Fix for required notification channel on Oreo" --- plugin.xml | 1 - src/android/FirebasePluginMessagingService.java | 14 +------------- src/android/cordova-plugin-firebase-strings.xml | 5 ----- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 src/android/cordova-plugin-firebase-strings.xml diff --git a/plugin.xml b/plugin.xml index a5423d4be..069e2547f 100644 --- a/plugin.xml +++ b/plugin.xml @@ -48,7 +48,6 @@ xmlns:android="http://schemas.android.com/apk/res/android"> - diff --git a/src/android/FirebasePluginMessagingService.java b/src/android/FirebasePluginMessagingService.java index 5d10271de..4d4f9f8e7 100755 --- a/src/android/FirebasePluginMessagingService.java +++ b/src/android/FirebasePluginMessagingService.java @@ -1,6 +1,5 @@ package org.apache.cordova.firebase; -import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; @@ -15,7 +14,6 @@ import android.content.ContentResolver; import android.graphics.Color; -import com.asb360.area.dev.R; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; @@ -97,10 +95,8 @@ private void sendNotification(String id, String title, String messageBody, Map= android.os.Build.VERSION_CODES.O) { - NotificationChannel channel = new NotificationChannel(channelId, - channelName, - NotificationManager.IMPORTANCE_DEFAULT); - notificationManager.createNotificationChannel(channel); - } - notificationManager.notify(id.hashCode(), notification); } else { bundle.putBoolean("tap", false); diff --git a/src/android/cordova-plugin-firebase-strings.xml b/src/android/cordova-plugin-firebase-strings.xml deleted file mode 100644 index d992bd6a2..000000000 --- a/src/android/cordova-plugin-firebase-strings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - fcm_default_channel - Default -