react-native-callkit icon indicating copy to clipboard operation
react-native-callkit copied to clipboard

How to know whether incoming or outgoing call in `didReceiveStartCallAction` event

Open sujameslin opened this issue 7 years ago • 1 comments

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?

sujameslin avatar Feb 07 '18 15:02 sujameslin

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?

aarkalyk avatar Feb 26 '18 10:02 aarkalyk