react-native-webrtc / react-native-webrtc/react-native-callkeep
How to use callkeep together with Universal Links? (Duplicate declaration of method 'application:continueUserActivity:restorationHandler:')
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
Bug report
-
I've checked the example to reproduce the issue.
-
Reproduced on:
-
iOS
Description
I am using react-native-callkeep in a project together with Universal Links. The problem occurs already in the setup process of react-native-callkeep. According to the iOS Setup-Doc, it is necessary to add the following delegate to the AppDelegate.m which is called when the user tries to start a call from native Phone App:
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
return [RNCallKeep application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
However, due to the fact that I already have installed the Universal Linking I already had to add the following continueUserActivity delegate to the AppDelegate.m:
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
Both delegates can not be added, since Xcode is giving an error during compiling then.
Is there a possibility to use still both delegates on the same time?
Steps to Reproduce
Do not add the delegate which is mentioned in the iOS Setup-Doc to the AppDelegate.m and try to start a call from native Phone CallingApp.
No "didReceiveStartCallAction"-event will then be fired.
Versions
- Callkeep: 4.2.0
- React Native: 0.64.2
- iOS: 14.17.1
- Phone model: iPhone X (physical device)
Logs

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 with AppDelegate.m and the iOS setup documentation, comparing the two continueUserActivity:restorationHandler: delegates for RNCallKeep and RCTLinkingManager. Determine how Universal Links and incoming native calls can both be handled, then verify that the didReceiveStartCallAction event and Universal Link behavior work without duplicate declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100