Notifications in Flutter

Greg Perry
17 min readApr 17, 2020

Android and iOS Notifications in one codebase

On an Android phone, when you have a new message, email or missed call, you will be able to swipe down from the top of the screen to access the Notification Panel and see at a glance what the notification details are. When there are notifications sitting in the Notification panel, you will also see an icon at the very top of the screen, as well as a badge on the application itself.

Michael Bui wrote a wonderful plugin, flutter_local_notifications, that provides such notifications not only in Android but also in iOS. You have to consider both platforms when using this plugin, and as it happens, when using the utility class I wrote to work with this plugin. In this article, I’m going to present this class called, ScheduleNotifications.

I Like Screenshots. Click For Gists.

--

--