camilleB
camilleB

Reputation: 2101

How to display local notifications with iOS on Flutter application?

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?

Upvotes: 0

Views: 3622

Answers (1)

Tree
Tree

Reputation: 31401

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.

Upvotes: 1

Related Questions