ben-xD / push

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

[Feature Request] About notification Actions, quick reply, image preview, and how the OS handles notifications #69

Open mihai-gabriel8 opened 2 days ago

mihai-gabriel8 commented 2 days ago

Is there any way to add notification actions on iOS and Android? Without using flutter_local_notifications plugin?

For example, allowing the user to quickly reply in chat to a conversation by long-tapping the notification on iOS and pressing a "Reply" button? Or previewing an image on iOS and Android

We can show our own custom notifications using flutter_local_notifications, however, this means that we have to handle the OS notifications in a different way, to not show them (maybe sending silent notifications with only payload data)

Do we have to do this workaround (modifying the server code in order to not show the OS notification) to be able to be able to show custom actions, display new messages in "Conversation Notifications" tab on android, and other important features that are presen in serious messaging apps, only with flutter_local_notificaions?

mihai-gabriel8 commented 2 days ago

To add a note on this issue: sending background notifications on iOS are marked as "Low priority" and might be delayed by the system, as stated in ios Docs https://developer.apple.com/documentation/usernotifications/pushing-background-updates-to-your-app

If we want to build a serious chat application (with actions like quick replies, customizable notification content) with Flutter, there is no other way to tap into how the OS handles the notification before showing it, once it was received?