Firing Scheduled Local Notifications in Android

Özgür Taş
Aug 26, 2020

--

I want to share my “Notification Man” 3rd party Android library with you. This library’s superpower is firing scheduled local notifications.

I managed it by using Work Manager which is one of the new Android Jetpack components. The solution is simple: Use 2 work managers. LocalNotificationPostWorker is going to schedule the task. After that, LocalNotificationShowWorker is going to show the notifications.

The library and source codes are here.

Check out snippets

App is in foreground:

Exit the app:

App is in background:

App is killed:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Özgür Taş
Özgür Taş

No responses yet

Write a response