void Start() { string channelId = "channel_id_1"; string channelName = "Test Channel"; string channelDescription = "Test notification are sent througth this channel"; // with publisher manager you can get a publisher for your notification channel // you can create it with `CreatePublisher` or you can just get a previously created // publisher using its channel id with `GetPublisher`. // // you should not worry calling `CreatePublisher` multiple times since if // there is a publisher for that channel then it is returned. publisher = PublisherManager.Instance.CreatePublisher(channelId, channelName, channelDescription); // having a notification config is optional // it helps to setup some option from inspector instead of // writing it in code for each notification you need. NotificationConfig notificationConfig = GetComponent <NotificationConfig>(); // with setting notification config of a publisher if some options of a notification // is not set by `Notification` object then they are set from given config. publisher.SetNotificationConfig(notificationConfig.GetDataConfig()); }