Skip to content

Notification are received on in native code (android) but the onData is never called in flutter #61

@AbderraoufKhodja

Description

@AbderraoufKhodja

After adding flutter_notification_listener, on debug mode, I only receive notifications events logs but the onData function is never called. I am using the example code from the repo.

Log:

D/NotificationsListenerService( 9982): send notification event: {infoText=null, flags=17, canTap=true, title=*******, subText=null, uid=10293, showWhen=true, largeIcon=[B@2aa2d9f, package_name=************, text=************;, id=-132088129, _id=80e9ac71d00c7, isGroup=false, actions=null, channelId=message_channel_new_id, key=0|*********|-132088129|null|10293, timestamp=1731844584591}

It seems that the method mBackgroundChannel.invokeMethod("sink_event", listOf(callbackHandle, evt.data) call from FlutterNotificationListenerPlugin.kt is failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions