ben-xD / push

Push notifications in Flutter without firebase_messaging.
https://pub.dev/packages/push
36 stars 22 forks source link

flutter_local_notification present parameters ignored #32

Closed Arley011 closed 10 months ago

Arley011 commented 10 months ago

Push plugin has some logic to not show APNs notifications received in foreground, but show it if received from flutter_local_notifications:

Знімок екрана 2023-08-09 о 17 09 38

This logic is fine, but not complete because local notification may have present parameters to not show notification.
For example, in my project we have a scheduled notification that is configured to not show if the app is in the foreground. But after adding push plugin it started showing up during foreground. I suggest to add a logic to check such parameters:

Знімок екрана 2023-08-09 о 17 20 31

I'll try to do so and maybe will create a PR for this amazing plugin.

ben-xD commented 10 months ago

Closed by https://github.com/ben-xD/push/pull/33. Thanks for your PR!