File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,12 @@ + (CXProviderConfiguration *)getProviderConfiguration:(NSDictionary*)settings
421
421
providerConfiguration.supportsVideo = YES ;
422
422
providerConfiguration.maximumCallGroups = 3 ;
423
423
providerConfiguration.maximumCallsPerCallGroup = 1 ;
424
- providerConfiguration.supportedHandleTypes = [NSSet setWithObjects: [NSNumber numberWithInteger: CXHandleTypePhoneNumber], nil ];
424
+ if (settings[@" handleType" ]){
425
+ int _handleType = [RNCallKeep getHandleType: settings[@" handleType" ]];
426
+ providerConfiguration.supportedHandleTypes = [NSSet setWithObjects: [NSNumber numberWithInteger: _handleType], nil ];
427
+ }else {
428
+ providerConfiguration.supportedHandleTypes = [NSSet setWithObjects: [NSNumber numberWithInteger: CXHandleTypeGeneric], nil ];
429
+ }
425
430
if (settings[@" supportsVideo" ]) {
426
431
providerConfiguration.supportsVideo = [settings[@" supportsVideo" ] boolValue ];
427
432
}
You can’t perform that action at this time.
0 commit comments