Android – Notifications

Android – Notifications

Because of the notifications vary by the Android version, it is recommended to use the Notification compatibility class. Use the Notification Builder, and set the notifications settings with the set methods. The build method will create the instance, but to display a notification you need the NotificationManager which is called with getSystemService method. Create a notification ChannelId is a string that is used the channel that the notification will be assigned. You choose the id. setDefault specifies the notification defaults (light, vibration etc). setSmallIcon specifies the small icon that will…

Android – Notifications Read More