Channel Push Notification Settings

Activate / Deactivate Channel Push Notification

You can enable or disable channel push notification settings for current user.

// activate
TalkPlusApi.EnableChannelPushNotification(tpChannel, (TPChannel tpChannel) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

// deactivate
TalkPlusApi.DisableChannelPushNotification(tpChannel, (TPChannel tpChannel) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

Channel Push Notification Settings (Sound)

You can change channel push notification (FCM) sound settings for current user.

// change channel notification sound
TalkPlusApi.SetChannelPushSound(tpChannel, sound, (TPChannel tpChannel) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

Last updated