【问题标题】:How to make a task run in the background in Flutter如何在 Flutter 中让任务在后台运行
【发布时间】:2018-11-20 06:11:30
【问题描述】:

我有一个在线播放音频的音乐应用。唯一的问题是每次我退出应用程序时它都会被杀死,这对用户不利。他们需要它在退出后继续在后台运行。我怎样才能做到这一点?

【问题讨论】:

标签: flutter flutter-test


【解决方案1】:

Can I run Dart code in the background of an Flutter app?

是的,您可以在 iOS 和 Android 上的后台进程中运行 Dart 代码。如需更多信息,请参阅Medium article Executing Dart in the Background with Flutter Plugins and Geofencing

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-20
    • 1970-01-01
    • 2020-09-27
    • 2018-02-04
    • 1970-01-01
    • 2019-01-13
    • 2015-07-13
    相关资源
    最近更新 更多