From 877cea59e7d9913b384380a0ec456a32b564e073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 14 Feb 2019 15:19:26 +0100 Subject: [PATCH] ios: don't configure CXProvider if CallKit is disabled --- ios/sdk/src/callkit/JMCallKitProxy.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/sdk/src/callkit/JMCallKitProxy.swift b/ios/sdk/src/callkit/JMCallKitProxy.swift index 2d97ac001a..cc0061a7bc 100644 --- a/ios/sdk/src/callkit/JMCallKitProxy.swift +++ b/ios/sdk/src/callkit/JMCallKitProxy.swift @@ -62,6 +62,8 @@ import Foundation @objc public static func configureProvider(localizedName: String, ringtoneSound: String?, iconTemplateImageData: Data?) { + guard enabled else { return } + let configuration = CXProviderConfiguration(localizedName: localizedName) configuration.iconTemplateImageData = iconTemplateImageData configuration.maximumCallGroups = 1