이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

Flutter

This article explains how to replace the incoming call ringtone of TUICallKit, which is divided into application ringtone and offline push ringtone.

Setting application Ringtone

There are two ways to set the application ringtone:

1. Replace Audio File

If you include the TUICallKit component via source code dependency, you can replace the audio files under the assets\audios folder to achieve the purpose of changing the ringtone:
File Name
Use
phone_dialing.mp3
Ringtone when initiating a call
phone_ringing.mp3
Ringtone when receiving a call

2. Call Ringtone Interface

You can also set the incoming call ringtone through the setCallingBell interface.
TUICallKit.instance.setCallingBell('flie path');

Set Mute Mode

If you do not need ringing, you can set the silent mode through enableMuteMode interface.
TUICallKit.instance.enableMuteMode(true);

Set Offline Push Ringtone

1. iOS

VoIP push doesn't support customizing push ringtones. APNs push allows modifying the parameters in call and groupcall interfaces, under params including TUIOfflinePushInfo.iOSSound for setting offline message ringtones on the iOS platform.

2. Android

Note:
The interface supports Huawei, Xiaomi, FCM, and APNS.
FCM's push ringtone is set as the application ringtone.
For Huawei, Xiaomi, and APNS push ringtone settings, please set the TUIOfflinePushInfo.iOSSound's iOSSound and androidSound fields when calling Call and GroupCall.