Skip to content

How to show overlay from native code #146

@koncafaruk

Description

@koncafaruk

Hi,

Thanks for the package. I’m able to show the overlay using the Dart code you provided. However, I’m not sure how to do the same from Java/Kotlin.

I’ve implemented a custom NotificationListenerService and need to show the Flutter-based overlay when a specific notification is posted. This event might happen before Flutter app started, so I need to trigger the overlay directly from Kotlin code.

Specifically, I want to invoke MethodCallHandlerImpl.onMethodCall() from Kotlin to start the overlay. Could you please guide me on how to achieve this?

Thanks in advance!

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