Channel Push Notification Settings

Activate / Deactivate Channel Push Notification

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

// enable
TPChannel? channel = await TalkPlusAPI.enableChannelPushNotification(
    tpChannel,
    errorCallback: (errorCode, errorMessage){}
);

// disable
TPChannel? tpChannel = await TalkPlusAPI.disableChannelPushNotification(
    tpChannel,
    errorCallback: (errorCode, errorMessage){}
);

Channel Push Notification Settings (Sound)

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

// change channel notification sound
TPChannel? tpChannel = await TalkPlusAPI.setChannelPushSound(
    tpChannel, 
    sound,
    errorCallback: (errorCode, errorMessage){}
);

Last updated