Android & Flutter Offline/Local Push Notifications

Flutter Knowledge Sharing #32

Geno Tech
App Dev Community

--

Welcome to my next Flutter story. It’s about local push notification. Simple to implement. But, often use in applications. therefore, compulsory to know. Up to now, I have discussed 31 topics in Flutter. This is the next step of Flutter journey. Mainly developers build mobile applications. But, developers are getting familiar with Flutter with web, desktop apps, embedded apps also. I hope to write some about Flutter web development. Because nowadays people are more engaging with it. Mainly we should know about widgets and how to handle the states of the application. Flutter is easy !!!

Here we use the flutter_local_notifications plugin that can be used to send and handle push notification of your application. Even the app is offline or without any cloud messaging services. Let’s see how we implement it.

First, you need to do is add the latest dependencies to the pubspec.yaml as follows.

dependencies:
flutter:
sdk: flutter
flutter_local_notifications:

Also, add the following permissions as well as the receiver the details in the app manifest.

<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
<receiver…

--

--

Geno Tech
App Dev Community

Software Development | Data Science | AI — We write rich & meaningful content on development, technology, digital transformation & life lessons.