Browse Source

PushNotifications: when fetching the list of delivered notifications on Android, include remote notifications too.

tags/2021-05-28
Lukasz Kozakiewicz 7 years ago
parent
commit
d145fc3cb2
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_extra/native/juce_android_PushNotifications.cpp

+ 4
- 1
modules/juce_gui_extra/native/juce_android_PushNotifications.cpp View File

@@ -1288,7 +1288,10 @@ struct PushNotifications::Pimpl
auto notificationData = LocalRef<jobject> (env->CallObjectMethod (extras, JavaBundle.getBundle, auto notificationData = LocalRef<jobject> (env->CallObjectMethod (extras, JavaBundle.getBundle,
javaString ("notificationData").get())); javaString ("notificationData").get()));
return localNotificationBundleToJuceNotification (notificationData);
if (notificationData.get() != nullptr)
return localNotificationBundleToJuceNotification (notificationData);
else
return remoteNotificationBundleToJuceNotification (extras);
#else #else
ignoreUnused (notification); ignoreUnused (notification);
return {}; return {};


Loading…
Cancel
Save