InRead and Banner:

Device unmuted = sound is OFF by default. Switched ON with a tap on the unmute button.

Device muted = sound is OFF by default. Switched ON by switching the physical mute button (iOS) or increasing the Media Volume (Android).

Audio mix management

By default, the Teads inApp SDK handles the audio session by setting its category to ambient. This means that all the audio played by other applications will simply mix with the ad sound.

If you chose to handle the audio session by yourself you'll need to call disableTeadsAudioSessionManagement in adSettings.

var placementSetting = new TeadsAdPlacementSettings();
await placementSetting.disableTeadsAudioSessionManagement();

Note

If you are using an audio session with a category that is non-mixable, all sound from other applications (eg: Spotify) would be stopped when an ad will start playing (even an ad without sound). This is due to Apple's default behavior with a video player.

To prevent that and preserve optimal user experience, please make sure that your audio session category is mixable. You can add mixWithOthers from AVAudioSession.CategoryOptions in some category (like .playback).

Implement the two listenners of the module:

import { NativeEventEmitter, NativeModules } from "react-native";

const eventEmitter = new NativeEventEmitter(
  NativeModules.TeadsAdLifecycleEvents
);

// Subscribe to the event
eventEmitter.addListener("adStartPlayingAudio", (event) => {
  const { adId } = event;
  //here you can choose for example to shut down any other sound in your app
});

// Subscribe to the event
eventEmitter.addListener("adStopPlayingAudio", (event) => {
  const { adId } = event;
  //here you can reactivate all sound in your app
});