mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
PushNotifications: when fetching the list of delivered notifications on Android, include remote notifications too.
This commit is contained in:
parent
2b2d808310
commit
d145fc3cb2
1 changed files with 4 additions and 1 deletions
|
|
@ -1288,7 +1288,10 @@ struct PushNotifications::Pimpl
|
|||
auto notificationData = LocalRef<jobject> (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 {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue