dialVoiceCall(toPhoneNumber:completionHandler:)
Request the system to dial a voice call on behalf of someone involved in a crash.
Declaration
func dialVoiceCall(toPhoneNumber phoneNumber: String, completionHandler handler: @escaping @Sendable (Bool, (any Error)?) -> Void)func dialVoiceCall(toPhoneNumber phoneNumber: String) async throws -> BoolParameters
- phoneNumber:
The phone number to dial.
- handler:
The completion handler invoked with the status of the voice call.
Discussion
Apps running in the background or foreground can request to dial a voice call without confirmation. The system doesn’t allow emergency numbers such as 112, 911, or 999.
The system accepts requests only if the app is authorized to receive and handle Crash Detection events, and only for a limited time after a Crash Detection event occurs.