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

Doesn't work from a "foreground task" isolate #43

Open
ImranR98 opened this issue Jul 13, 2024 · 0 comments
Open

Doesn't work from a "foreground task" isolate #43

ImranR98 opened this issue Jul 13, 2024 · 0 comments

Comments

@ImranR98
Copy link

ImranR98 commented Jul 13, 2024

Trying to use the SmsReceiver (or even just the basic SMS reader) from a flutter_background_service task (foreground mode) fails with this error:

═══════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel plugins.elyudde.com/recvSMS:
MissingPluginException(No implementation found for method listen on channel plugins.elyudde.com/recvSMS)

When the exception was thrown, this was the stack:
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
platform_channel.dart:332
<asynchronous suspension>
#1      EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:676:9)
platform_channel.dart:676
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════
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