Hello. I’m upgrading to SDK 45, and I’m getting this error:
“[Unhandled promise rejection: Error: “interruptionModeIOS” was set to an invalid value.]”
To date, my app has been happily running with this code:
const setAudioSettings = async () =>
await Audio.setAudioModeAsync({
playsInSilentModeIOS: true,
staysActiveInBackground: true,
interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX,
shouldDuckAndroid: false,
interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX
});
If I take out the interruptionModeIOS and interruptionModeAndroid settings, the error goes away. But presumably this means the ‘interruption’ issue isn’t addressed.
Any ideas?