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 {};