So, it's time for me to actually try Flutter. I've watched the last dev conferences and I'm amazed of what Flutter is able to do and the future Flu...
For further actions, you may consider blocking this person and/or reporting abuse
A small suggestion for how you could avoid the tangle of keepResult:
Make onMethodCall an async function.
In onMethodCall's "connect" branch,
Make connectToService return a Future that gets completed by the onServiceConnected callback. (Likely using a
Completer
.)Not going into too much more detail because I see in the repository that all the code is completely different already, this comment is more to try to provide other passers-by with some tools to avoid the same structural issues. :)
Oh, my mistake, I was missing that that entire section isn't Flutter/Dart code at all! Found it further into the repository. Turns out nearly all of the post's code is Java!
The same premise still applies, but now it all makes more sense to me as well. :)
Thanks! Really helpful
greate example. very helpful. How about implementation in iOS ?
Thanks! Well I got a Mac few weeks ago, so now I can finally give it a try. Will update soon :)
please implementation in IOS for background service...
Thanks Brian Mayo,
It's very nice app.
Could you please make the app run as services?
The music is still off after 60 minutes even though Rest app closed
Hey, thanks!
The app is using a service to pause the music. Maybe you found a bug, please feel free to submit an issue with some details on how to replicate the issue
github.com/protium-dev/rest
This is very useful, thanks!
already solved at here icetutor.com/question/how-do-i-run...
Where does each snippet of code go into the project?
What goes into the Service project, what goes into the app? Or is it just one project?