ios: don't configure CXProvider if CallKit is disabled

This commit is contained in:
Saúl Ibarra Corretgé 2019-02-14 15:19:26 +01:00 committed by Paweł Domas
parent a4b3f8ade6
commit 877cea59e7
1 changed files with 2 additions and 0 deletions

View File

@ -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