Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AbderraoufKhodja opened this issue Nov 17, 2024 · 0 comments

Comments

@AbderraoufKhodja
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant