Untitled
unknown
plain_text
5 days ago
924 B
4
Indexable
private void customnotification2() { SMTNotificationChannel.Builder smtBuilder = new SMTNotificationChannel.Builder( "1234", "test", NotificationManager.IMPORTANCE_HIGH ); //To set the description to the channel add below method. smtBuilder.setChannelDescription("Harish testing"); //To set the group ID to the channel add below method. (Make sure that before setting group ID here, that group must be created before. Check the code below) // smtBuilder.setChannelGroupId("<Group_ID>"); //To set sound to channel, add below method. (Note that sound name must be without extention.) smtBuilder.setNotificationSound("viettel_sound"); SMTNotificationChannel smtNotificationChannel = smtBuilder.build(); SmartPush.getInstance(new WeakReference<>(this)).createNotificationChannel(smtNotificationChannel); }
Editor is loading...
Leave a Comment