I'm working on a Flutter application. I'm trying to display local notification in background. I know it's not possible to run dart code in background currently. So I'm trying to display these notifications with iOS. To display these notifications, I have to create a new ViewController but when I launch my Flutter app, the ViewController of Flutter is running but not the one on the iOS side.
I'm new to iOS development. Is there a solution to run two ViewController? Is there another solution to launch my local notification?
Here is the plugin for the job
https://pub.dartlang.org/packages/flutter_local_notifications
In case you wish to implement notifications yourself, you would have to write a plugin , or use platform channels
Implementation of those are out of the scope of the question.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.