ios: don't configure CXProvider if CallKit is disabled
This commit is contained in:
parent
a4b3f8ade6
commit
877cea59e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue