-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios: support additional options pass from js #238
ios: support additional options pass from js #238
Conversation
I clean/remove the overloading functions of function arguments:+ (void)reportNewIncomingCall:(NSString *)uuidString
handle:(NSString *)handle
handleType:(NSString *)handleType
hasVideo:(BOOL)hasVideo
localizedCallerName:(NSString * _Nullable)localizedCallerName
supportsHolding:(BOOL)supportsHolding
supportsDTMF:(BOOL)supportsDTMF
supportsGrouping:(BOOL)supportsGrouping
supportsUngrouping:(BOOL)supportsUngrouping
fromPushKit:(BOOL)fromPushKit
payload:(NSDictionary * _Nullable)payload
withCompletionHandler:(void (^_Nullable)(void))completion
{ Breaking change:All user invoke this function in [RNCallKeep reportNewIncomingCall: uuidString
handle: handle
handleType: handleType
hasVideo: YES
localizedCallerName: localizedCallerName
supportsHolding: YES
supportsDTMF: YES
supportsGrouping: YES
supportsUngrouping: YES
fromPushKit: YES
payload: nil
withCompletionHandler: nil]; or one line version[RNCallKeep reportNewIncomingCall:uuidString handle:handle handleType:handleType hasVideo:YES localizedCallerName:localizedCallerName supportsHolding:YES supportsDTMF:YES supportsGrouping:YES supportsUngrouping:YES fromPushKit:YES payload:nil withCompletionHandler:nil]; |
Hello, Android support some of features like iOS did for example video support, hold, maybe grouping is conference (need to check) etc ... I don't know if we update this PR and merge this one and create new one for Android. |
I think if this PR does not conflict with master or other WIP PR, it's better to merge this first, then create a new one for android option, once the android api is nearly finalize. Since this PR is mainly handling IOS only (add a new param: |
I've checked #251 a bit, you've added a This is current api for
So I guess we need to:
And for
|
a11913d
to
a0eb87a
Compare
rebased 😉 |
Thanks @zxcpoiu ! |
Any chance we could follow semver when including breaking changes like this in releases? It was included in |
Also, on
EDIT: After a clean and rebuild the crash seems to have gone. |
Continued from #188