-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
AudioService.start stucks after route popped on swipe back / back button press #418
Comments
Thanks for reporting this bug. However before I can look at it, please follow the instructions as follows:
It may not seem like much, however I have many issues to investigate and so I tend not to spend the time on an issue until it is ready for me to clone and test. Thanks. |
@ryanheise done |
Can you check that it compiles without error? |
Fixed, must be now, I just checked for it |
Thanks @Aqluse I was able to run it and confirmed what is happening. Looking at your code, I noticed that you have not put the |
@ryanheise I will look how it act in that place, I use initialRoute now though |
Your initial route still has a root widget inside, so that is where you can insert |
Well, it works that way, thanks. Sorry for bothering, maybe it'll be worth to write a sentence about it in more insisting way? |
That's a good idea, thanks for the suggestion. I've just clarified the README and docs. |
I have my After which I have used WillPopScope due to having to use the navigator widget. Now when I swipe to go back (Android Back), my |
@Maadhav Did you mean to ask a question in particular? Or are you just attempting to summarise the preceding discussion? (I'm honestly not clear on that because there seems to be a disconnect between your comment and the comment immediately preceding it.) |
@ryanheise So, basically I am facing an issue with the implementation of audio_service in my flutter project. As mentioned above in my comment, I have wrapped the
Now, why does |
Since your question is actually identical to the one asked in the first post, I will copy and paste my previous answer:
I am not sure if you have done it, but please read the original question and notice that your code makes the same mistake, therefore my existing answer above equally applies to you. I hope that the new README makes it clear, but if not, can you tell me what is unclear so that I can improve it? |
OK got it. |
👍 |
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 audio_service. |
Which API doesn't behave as documented, and how does it misbehave?
At least starting from 0.11.2, up to newest 0.13.0
Minimal reproduction project
https://github.com/Aqluse/audio_service
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Flutter SDK version
v1.17.5
Additional context
As I discovered right before filing this issue,
AudioServiceWidget
has overridendidPopRoute
which is exactly what getting called when back button pressed / swipe back occured. It seems likeAudioService
is disconnected within, which seems to cause subject of this issue.The text was updated successfully, but these errors were encountered: