gnasher729
gnasher729

Reputation: 52632

Play system ringtones using iOS CallKit

I can use ringtones built into my app for incoming calls with CallKit by calling

let configuration = CXProviderConfiguration(localizedname:"MyApp")
configuration.ringtoneSound = "mysound.wav"

However, I want to use system ringtones, like the "Beacon" ringtone which is stored at "/Library/Ringtones/Beacon.m4r". Setting configuration.ringtoneSound to "/Library/Ringtones/Beacon.m4r", "Ringtones/Beacon.m4r", "Beacon.m4r" all don't work.

Does anyone know if it is possible to use the system ringtones, and how to use them?

To repeat: The problem is not playing the ringtones, that's easy. The problem is making CallKit use the system ringtones for an incoming call.

Upvotes: 2

Views: 1803

Answers (0)

Related Questions