How to create a service in Flutter to make an app to run always in background?

前端 未结 3 939
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 02:45

I would like to make my Flutter application to run always in background. With android, we have to create a Service that runs always in background. I don\'t find something ab

3条回答
  •  隐瞒了意图╮
    2020-12-01 03:38

    This is a library to do just that background_fetch.

    Background Fetch is a very simple plugin which will awaken an app in the background about every 15 minutes, providing a short period of background running-time. This plugin will execute your provided callbackFn whenever a background-fetch event occurs. ref

提交回复
热议问题