채널 푸시알림 설정
채널별 사용자 푸시알림 활성화
채널 푸시알림을 (FCM 푸시알림) 사용자 별로 활성화 및 비활성화 처리 할 수 있습니다.
// 활성화
[[TalkPlus sharedInstance] enableChannelPushNotification:channel 
    success:^(TPChannel * tpChannel) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];
// 비활성화
[[TalkPlus sharedInstance] disableChannelPushNotification:channel 
    success:^(TPChannel * tpChannel) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];// 활성화 
TalkPlus.sharedInstance()?.enableChannelPushNotification(tpChannel,
    success: { tpChannel in
    // SUCCESS
}, failure: { (errorCode, error) in
    // FAILURE
})
// 비활성화
TalkPlus.sharedInstance()?.disableChannelPushNotification(tpChannel,
    success: { tpChannel in
    // SUCCESS
}, failure: { (errorCode, error) in
    // FAILURE
})채널별 사용자 푸시알림 설정 (사운드)
채널 푸시알림 (FCM 푸시알림) 사운드를 사용자 별로 변경할 수 있습니다.
// 채널별 사운드설정 변경
[[TalkPlus sharedInstance] setChannelPush:channel 
    sound:@"mySound.wav" 
    success:^{
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];
// 채널별 사운드설정 변경
TalkPlus.sharedInstance()?.setChannelPush(tpChannel,
                                          sound: "mySound.wav",
                                          success: { tpChannel in
    // SUCCESS
}, failure: { (errorCode, error) in
    // FAILURE  
})Last updated