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

Error while stopping the front-end service #308

Open
TT-xiaoseven opened this issue Dec 13, 2024 · 0 comments
Open

Error while stopping the front-end service #308

TT-xiaoseven opened this issue Dec 13, 2024 · 0 comments

Comments

@TT-xiaoseven
Copy link

I am using the v8.17.0 version of the plugin to implement the background positioning and activation function, but when I stopped the background service, two problems occurred:

Problem 1: Another IM plugin reported the following error

E/flutter (21410): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method markC2CMessageAsRead on channel tencent_cloud_chat_sdk)

I resolved the issue by modifying the source code in ForegroundTask. kt of this plugin and logging out the FlutterEngine. destroy() method.

Problem 2: The other localization plugin flutter-bmflocation is unable to receive localization callbacks.

This positioning callback is valid after the front-end service is initially enabled. Once the front-end service is turned off, it is no longer available, and even if the positioning plugin is reinitiated, it cannot receive callbacks again.

Now, I am troubled by the second question and hope to get a solution as soon as possible.

@TT-xiaoseven TT-xiaoseven changed the title 【】Error while stopping the front-end service Error while stopping the front-end service Dec 13, 2024
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