2

When the phone receives the notification it will make an object in java called notification and store it in a database. How can I make it so that when a notification comes in the application can read that notification and then make the object?

Shirish Yasa
  • 23
  • 1
  • 4

1 Answers1

1

To access notifications, you can use the NotificationListenerService. The documents on this is located at: https://developer.android.com/reference/android/service/notification/NotificationListenerService

For the implementation of this class, there has already been discussed within this link: NotificationListenerService Implementation (See the accepted answer for a link to an example)