5.8 C
New York
Monday, December 9, 2024

react native – Show callkit not present after outgoing callkeep in IOS


const startCall = () => {
    const uuid = '95f1ed69-9d64-45e9-9d03-ba4153f4fd03';
    const deal with="1234567890";
    RNCallKeep.startCall(uuid, deal with, 'Caller', 'generic', false);
};
- (BOOL)utility:(UIApplication *)utility didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"newProject";
  // You possibly can add your customized preliminary props within the dictionary under.
  // They are going to be handed right down to the ViewController utilized by React Native.
  self.initialProps = @{};
  
  [RNCallKeep setup:@{
        @"appName": @"newProject",
        @"maximumCallGroups": @3,
        @"maximumCallsPerCallGroup": @1,
        @"supportsVideo": @YES,
   }];

  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
RCT_EXPORT_METHOD(startCall:(NSString *)uuidString
                  deal with:(NSString *)deal with
                  contactIdentifier:(NSString * _Nullable)contactIdentifier
                  handleType:(NSString *)handleType
                  video:(BOOL)video)
{
#ifdef DEBUG
    NSLog(@"[RNCallKeep][startCall] uuidString = %@", uuidString);
#endif
    int _handleType = [RNCallKeep getHandleType:handleType];
    NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:uuidString];
    CXHandle *callHandle = [[CXHandle alloc] initWithType:_handleType worth:deal with];
    CXStartCallAction *startCallAction = [[CXStartCallAction alloc] initWithCallUUID:uuid deal with:callHandle];
    [startCallAction setVideo:video];
    [startCallAction setContactIdentifier:contactIdentifier];

    CXTransaction *transaction = [[CXTransaction alloc] initWithAction:startCallAction];

    [self requestTransaction:transaction];
}
[RNCallKeep][requestTransaction] transaction =  contactIdentifier=Caller video=0 relay=0 improve=0 retry=0 emergency=0 isVoicemail=0 ttyType=0 localLandscapeAspectRatio={0, 0} localPortraitAspectRatio={0, 0} dateStarted=(null) localSenderIdentityUUID=(null) shouldSuppressInCallUI=0>"
)>

there isn’t a name particulars display displayed. As an alternative, I solely see the standing bar indicating that there’s an ongoing name, however I can’t navigate to the cellphone display. I’m questioning if I missed one thing throughout the setup or if I would like to make use of any extra capabilities.

I wish to see the callkit display after beginning a name from callkeep to indicate the consumer that the decision is in an outgoing name.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles