-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
[android_alarm_manager] Flutter Audio Query plugin not loaded in callback isolate #50826
Comments
Reproducible on latest master Exception during async callback (same as author's logs)
flutter doctor -v
|
Closing as |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
Expected results:
When the callback is ran, the FlutterAudioQuery (FAQ for simplicity) plugin is loaded and functions of the plugin can be executed without any problems. The demo code should print something along the lines of
Actual results:
While the FAQ plugin runs when called in the main function, it is not loaded in the isolate when the alarm callback runs. The PathProvider plugin however runs just fine with a similar setup.
From my understanding with Android Embedding V2 (as declared in the AndroidManifest.xml), all plugins should be loaded through reflection and creating my own Application to load the plugins should not be required.
For transparency: I asked a question about this on Stack Overflow here because I wasn't sure whether this is a bug with Embedding V2, the AndroidAlarmManager or the FlutterAudioQuery plugin.
Logs
(Project is created, edited and ran in Android Studio; IntelliJ is just on the computer for other projects)
The text was updated successfully, but these errors were encountered: