Skip to main content
CometChatSoundManager plays the Kit’s incoming-message sound. It lives in CometChatCore and is shared by both toolkits. It plays through AudioServices, not AVAudioPlayer: a short UI sound needs no AVAudioSession, so the Kit never changes your app’s audio session, ducks the user’s music or interrupts a call.

Sound Events

The iOS v6 Kit plays only the incoming-message sound. The UIKit outgoing-call screen has a set(customSoundForCalls:) setter, but it plays nothing.

Usage

The API is the same in both toolkits, because CometChatSoundManager is in CometChatCore.
A custom file is registered once and cached, so playing it again is cheap. Use a short file that AudioServices can play — .caf, .aif or .wav, under 30 seconds.

Disable or Replace Sounds on Components

disableSoundForMessages wins over customSoundForMessages.

Choose which messages sound

The message list asks its policy before playing. Return false to stay silent for a message:

API Reference

Next Steps

Localize

Languages and date formats.

Customization Overview

Every way to change the Kit.