setNotificationChannelName

Sets the notification channel name for Android O (API 26) and above.

On Android 8.0 and higher, all notifications must belong to a notification channel. This method sets the name of the default Pushwoosh notification channel that users will see in system settings.

The channel name should be descriptive and help users understand what types of notifications they'll receive through this channel.

Note: This setting only affects Android O (API 26) and above. On older versions, this method has no effect. Example:


	  public class MyApplication extends Application {
	      
	      public void onCreate() {
	          super.onCreate();
	
	          Pushwoosh.getInstance().registerForPushNotifications();
	
	          // Set channel name for different app types
	
	          // E-commerce app
	          PushwooshNotificationSettings.setNotificationChannelName("Order Updates");
	
	          // News app
	          // PushwooshNotificationSettings.setNotificationChannelName("Breaking News");
	
	          // Messaging app
	          // PushwooshNotificationSettings.setNotificationChannelName("Messages");
	
	          // General app
	          // PushwooshNotificationSettings.setNotificationChannelName("Notifications");
	      }
	  }
	

Parameters

name

the user-visible name for the notification channel

See also

<a href="https://developer.android.com/training/notify-user/channels">Android Notification Channels</a>