Skip to content
Discussion options

You must be logged in to vote

The spinner is Android waiting for the app to confirm the reply. After an inline reply, Android keeps the notification alive (its flags show LIFETIME_EXTENDED_BY_DIRECT_REPLY) until the app posts an update to the same notification id. Until then cancel() is ignored, both cancel_notification=True and a manual notifications.cancel(id), which is why the example gets stuck. It's Android's documented flow (Retrieve the user reply), and the flutter_local_notifications maintainer confirms it in MaikuB/flutter_local_notifications#2620.

Fix: in on_action, call show() again with the same id (e.id):

async def handle_action(e: ftn.NotificationActionEvent):
    if e.action_id == "reply" and e.id is not …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ndonkoHenri
Comment options

Answer selected by yst-one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants