-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
[Web mobile Browser] Error: Bad state: Not connected to an application. #1171
Comments
There have been previous reports about the limitations of Safari on iOS. It is not an immediate priority for me given that there is a native iOS implementation which serves most purposes, but would welcome any contributors who want to specifically look at the iOS Safari behaviour. |
Hi, thanks for the quick response. I'm currently looking for a fix. |
Ok I comeback with some answers. I finally fix the problem from the simulation, a simple One thing too is that I deploy this web app to a firebase hosting. And I got no audio too because firebase hosting need this config for each file (via network) to be able to "allow" the file:
{
"hosting": {
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png|ttf|json|mp3|flac)", // Here the mp3 and flac sources
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Request-Headers",
"value": "*"
}
]
}
]
}
} Hope it will be a good legacy for people struggle like me. Have a nice day and thanks for the package again @ryanheise . |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio. |
Which API doesn't behave as documented, and how does it misbehave?
When using the example app from just_audio/examples and build for chrome. Then open the url in safari in a simulation iPhone via the
localhost:PORT
the audio do not play. See error message below from Safari Technology Preview.Minimal reproduction project
Provide a link here using one of two options:
The example
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Error messages
Expected behavior
Should play the audio even on mobile browser devices like safari in a mobile device.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Flutter SDK version
The text was updated successfully, but these errors were encountered: