From d145fc3cb2a69735f90df76debfc4199cfe6eadb Mon Sep 17 00:00:00 2001 From: Lukasz Kozakiewicz Date: Tue, 20 Feb 2018 12:24:23 +0100 Subject: [PATCH] PushNotifications: when fetching the list of delivered notifications on Android, include remote notifications too. --- .../juce_gui_extra/native/juce_android_PushNotifications.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp index 23258ae2d6..458edfd73f 100644 --- a/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp +++ b/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp @@ -1288,7 +1288,10 @@ struct PushNotifications::Pimpl auto notificationData = LocalRef (env->CallObjectMethod (extras, JavaBundle.getBundle, javaString ("notificationData").get())); - return localNotificationBundleToJuceNotification (notificationData); + if (notificationData.get() != nullptr) + return localNotificationBundleToJuceNotification (notificationData); + else + return remoteNotificationBundleToJuceNotification (extras); #else ignoreUnused (notification); return {};