7

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?

Samet ÖZTOPRAK
  • 3,112
  • 3
  • 32
  • 33
Taio
  • 3,152
  • 11
  • 35
  • 59

1 Answers1

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