最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

In Flutter want to run execute code every 15 mins once app is kill for iOS - Stack Overflow

programmeradmin4浏览0评论

I have flutter app which connect with bluetooth device and when my app is kill then on background for every 15 mins i need to called bluetooth service, application only support for iOS

I have flutter app which connect with bluetooth device and when my app is kill then on background for every 15 mins i need to called bluetooth service, application only support for iOS

Share Improve this question asked Jan 20 at 19:04 user4865136user4865136 112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

iOS silent notification can solve your problem。When app lifecycle callback is AppLifecycleState.detached, the current user's app is reported as killed (userId). The server sends a silent notification at a specific time, and in the silent notification callback method, you can call your Bluetooth service.

发布评论

评论列表(0)

  1. 暂无评论