diff --git a/native-src/android/app/app.iml b/native-src/android/app/app.iml
index 4380661..7185d6e 100644
--- a/native-src/android/app/app.iml
+++ b/native-src/android/app/app.iml
@@ -111,22 +111,22 @@
-
+
-
-
-
-
-
+
+
+
+
-
-
+
+
+
-
+
-
+
\ No newline at end of file
diff --git a/native-src/android/app/build.gradle b/native-src/android/app/build.gradle
index d2c5ebc..ca8724b 100644
--- a/native-src/android/app/build.gradle
+++ b/native-src/android/app/build.gradle
@@ -21,7 +21,7 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// compile 'com.android.support:appcompat-v7:25.1.0'
- compile 'com.google.firebase:firebase-messaging:11.6.2'
+ compile 'com.google.firebase:firebase-messaging:11.8.0'
}
gradle.buildFinished {
diff --git a/native-src/android/app/src/main/java/com/telerik/pushplugin/PushPlugin.java b/native-src/android/app/src/main/java/com/telerik/pushplugin/PushPlugin.java
index fb7d5ee..987f9d6 100644
--- a/native-src/android/app/src/main/java/com/telerik/pushplugin/PushPlugin.java
+++ b/native-src/android/app/src/main/java/com/telerik/pushplugin/PushPlugin.java
@@ -124,14 +124,7 @@ public void onMessageReceived(RemoteMessage message) {
Log.d(TAG, "Notification body: " + notif.getBody());
}
- boolean isCallbackRegistered = onMessageReceivedCallback != null;
- Log.d(TAG, "Callback is registered: " + isCallbackRegistered);
-
- // If the application has the callback registered
- // execute the callback. Otherwise, let the OS handle the notification.
- if (isCallbackRegistered) {
- executeOnMessageReceivedCallback(data, notif);
- }
+ executeOnMessageReceivedCallback(data, notif);
}
/**
diff --git a/src/platforms/android/pushplugin.aar b/src/platforms/android/pushplugin.aar
index 33f7b64..44aadd3 100644
Binary files a/src/platforms/android/pushplugin.aar and b/src/platforms/android/pushplugin.aar differ