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
  • 2,734
  • 3
  • 27
  • 31
Taio
  • 2,447
  • 6
  • 30
  • 49

1 Answers1

3

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
  • 2,566
  • 3
  • 22
  • 35
Raouf Rahiche
  • 24,700
  • 9
  • 75
  • 73