Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

How to know whether incoming or outgoing call in didReceiveStartCallAction event #28

Open
sujameslin opened this issue Feb 7, 2018 · 1 comment

Comments

@sujameslin
Copy link
Contributor

When user start call action from Recents in built-in Phone app, how to know that if clicked call history item was incoming or outgoing call?
Is it sending some parameter when didReceiveStartCallAction is invoked?

@aarkalyk
Copy link
Contributor

I don't think we can get information about wether call was incoming or outgoing.
The RNCallKitHandleStartCallNotification is sent from the following method

+ (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
  restorationHandler:(void(^)(NSArray * __nullable restorableObjects))restorationHandler

Just checked if userActivity provides such information, turns out it doesn't.
Why do you need it anyway?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants