react-native-webrtc / react-native-webrtc/react-native-callkeep
React-Native - Enable to create call when using CallKeep in React-Native use npm install react-native-callkeep - (App crash when I init call)
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
I have setup CallKeep in react native
Import RNCallKeep
**import RNCallKeep from "react-native-callkeep";**
**Init setup CallKeep**
RNCallKeep.setup(options).then(accepted => {});
**When I make a Outgoing Call using start call**
RNCallKeep.startCall(uuid, number, number, generic, false);
**I am also add Libraries**
-> project -> Target -> Frameworks, Libraries and Embedded Content and Add CallKit.frameworks
**AppDelegate.m added some function**
#import "RNCallKeep.h"
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray * __nullable restorableObjects))restorationHandler
{
return [RNCallKeep application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
}
**When I start a call App crashed main.m iOS file**
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
**App Crash Line main.m
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));**
Getting thread :
2021-01-27 16:07:43.128862+0530 Signal_Wire[893:52417] [RNCallKeep][requestTransaction] Requested transaction successfully
2021-01-27 16:07:43.172469+0530 Signal_Wire[893:51815] [RNCallKeep][CXProviderDelegate][provider:performStartCallAction]
2021-01-27 16:07:43.172584+0530 Signal_Wire[893:51815] [RNCallKeep][configureAudioSession] Activating audio session
2021-01-27 16:07:43.561084+0530 Signal_Wire[893:51815] [RNCallKeep][CXProviderDelegate][provider:didActivateAudioSession]
2021-01-27 16:07:43.561184+0530 Signal_Wire[893:51815] [RNCallKeep][configureAudioSession] Activating audio session
2021-01-27 16:07:43.626132+0530 Signal_Wire[893:51815] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:`enter code here`
(0x1843359d8 0x19869eb54 0x18439fd98 0x1843ab1f4 0x1842308a8 0x184223c04 0x1054bf674 0x1054c4e4c 0x1a252ec70 0x10b9dbce4 0x10b9dd528 0x10b9eb994 0x1842b55e0 0x1842afa88 0x1842aeba0 0x19afec598 0x186b9e3d8 0x186ba3958 0x104fb5818 0x183f8d568)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
terminating with uncaught exception of type NSException
**But caller Number recored show in Native call List**
**please help me if any have idea related this issues.**
Description
Steps to Reproduce
Versions
- Callkeep:
- React Native:
- iOS:
- Android:
- Phone model:
Logs
Paste here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash from RNCallKeep.setup and RNCallKeep.startCall, then inspect the exception logs alongside AppDelegate.m and main.m. Confirm which call-start path inserts the nil value and document a verified fix with a successful outgoing-call reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100