skip to Main Content

I have an taxi app made with Flutter, where notifications are sent for drivers to accept / reject an ride… Sometimes, drivers unknowingly dismiss the notifications and thereby they don’t open the app to either accept or reject the ride…

Notification on tap opens the app, but is it possible to launch app on dismissing the notification??

2

Answers


  1. Both Android and iOS expose APIs that support this:

    Android: Notification.Builder#setDeleteIntent

    iOS: UNNotificationDismissActionIdentifier

    However, it seems that flutter_local_notifications plugin does not really support it (see https://github.com/MaikuB/flutter_local_notifications/issues/74) so you may need to write some native code to handle this case.

    Login or Signup to reply.
  2. You can try this approach.

    Whenever this type of notification is received in your app just open a screen in your app just like video/audio call feature in social apps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search