I have a music app that streams audio online. The only problem is it gets killed every time I exit the app which is not good for the user. They need it to keep running in the background even after exiting. How can I achieve this?
Asked
Active
Viewed 9,842 times
7
-
[they are working on it](https://github.com/flutter/flutter/issues/3671) – Raouf Rahiche Jun 11 '18 at 03:46
-
Do u find anyway? – Mohammad Seyedmahmudi Feb 24 '20 at 13:40
-
no not yet. you can try @RaoufRahiche solution – Taio Feb 24 '20 at 13:48
1 Answers
4
Can I run Dart code in the background of an Flutter app?
Yes, you can run Dart code in a background process on both iOS and Android. For more information, see the Medium article Executing Dart in the Background with Flutter Plugins and Geofencing.

Jehad Nasser
- 3,227
- 5
- 27
- 39

Raouf Rahiche
- 28,948
- 10
- 85
- 77