-
Notifications
You must be signed in to change notification settings - Fork 939
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
Event listeners stops working after another plugin initialization #550
Comments
Thanks for the issue, I was also reading discussion from other plugin. Is it only that one plugin or for whole alarm manager ? |
I reproduced this issue only with those two plugins. The only difference is that for workmanager you need to call |
Hi @charafau , there is some additional info available from workmanager plugin developer: fluttercommunity/flutter_workmanager#64 (comment) |
thanks for investigation, not sure how to fix it yet, needs more fixing |
If we do not re-register your plugins inside the background Isolate then the stream in your main Isolate will still receive update from the However, as a user you want to be able to use your plugins also in the background. |
@charafau may be it is possible to re-create event streams? For example with some publicly available method that will close the streams and create a new one? I now, I need to reattach listeners to the streams then, but this is not a problem. If it is possible lets test it in separate branch, I'm ready for testing ;-) |
@estevez-dev probably yes.. but my time is very limited and I barely manage to do reviews and commits to project currently. If you create PR with fixes, that would be really helpful |
@charafau I totally understand you! Will try to find some time to look at the code. |
Any News? |
No. I was forced to stop using webview plugin because of this issue. Moved to Chrome custom tabs. |
Still would be good this to be fixed. |
I can confirm this plugin https://pub.dev/packages/flutter_downloader also conflicts with this... listeners are not fired |
By the way I don't have this issue anymore since workmanager moved to Flutter embedding v2 |
But on iOS it's still present. |
Hi |
Also the same issue is happening with audio_service (package for background audio play) when playing an audio then launching a url, same, no events. |
System info
Issue occurs on: Android
Plugin version: 0.3.7
Flutter doctor output:
Steps to Reproduce
onUrlChanged
listener attachedmain.dart
example:Webview calling somewhere in code:
Comment
workManager.Workmanager.registerPeriodicTask
and webviewonUrlChanged
will start working. Also need to mention that android_alarm_manager and workmanager register itself in java application class. For example:Logs
No errors in log
The text was updated successfully, but these errors were encountered: