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

Method channel calls inside the OverlayService class is not working. #17

Closed
hemandroid opened this issue Jul 26, 2022 · 2 comments
Closed

Comments

@hemandroid
Copy link

Hi there,

Method channel calls inside the OverlayService class is not working.

E/flutter (14596): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method updateFlag on channel x-slayer/overlay)
E/flutter (14596): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165:7)
E/flutter (14596): <asynchronous suspension>
E/flutter (14596): #1      FlutterOverlayWindow.updateFlag (package:flutter_overlay_window/flutter_overlay_window.dart:103:24)
E/flutter (14596): <asynchronous suspension>
E/flutter (14596): 
@zees98
Copy link

zees98 commented Aug 6, 2022

Having similar issues, it appears that method channel calls are in the main thread, while the overlay window is being created some where else. Therefore, is unable to access the MainActivity.

Would love to have a solution soon since a project of mine is blocked by this.

@X-SLAYER
Copy link
Owner

#48 (comment)

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

3 participants