Skip to content

Commit 59306ca

Browse files
fix: change parameter handle to number (#39)
* fix: change parameter handle to number , call.argument("number") was undefined in HandleMethodCall for startCall case * fix(ios): change handle to number
1 parent b308413 commit 59306ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ios/Classes/CallKeep.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ - (BOOL)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
8888
result(nil);
8989
}
9090
else if ([@ "startCall" isEqualToString:method]) {
91-
[self startCall:argsMap[@"uuid"] handle:argsMap[@"handle"] contactIdentifier:argsMap[@"callerName"] handleType:argsMap[@"handleType"] video:[argsMap[@"hasVideo"] boolValue]];
91+
[self startCall:argsMap[@"uuid"] handle:argsMap[@"number"] contactIdentifier:argsMap[@"callerName"] handleType:argsMap[@"handleType"] video:[argsMap[@"hasVideo"] boolValue]];
9292
result(nil);
9393
}
9494
else if ([@"isCallActive" isEqualToString:method]) {

lib/src/api.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@ class FlutterCallkeep extends EventManager {
104104
}
105105
}
106106

107-
Future<void> startCall(String uuid, String handle, String callerName,
107+
Future<void> startCall(String uuid, String number, String callerName,
108108
{String handleType = 'number', bool hasVideo = false}) async {
109109
if (!isIOS) {
110110
await _channel.invokeMethod<void>('startCall', <String, dynamic>{
111111
'uuid': uuid,
112-
'handle': handle,
112+
'number': number,
113113
'callerName': callerName
114114
});
115115
return;
116116
}
117117
await _channel.invokeMethod<void>('startCall', <String, dynamic>{
118118
'uuid': uuid,
119-
'handle': handle,
119+
'number': number,
120120
'callerName': callerName,
121121
'handleType': handleType,
122122
'hasVideo': hasVideo

0 commit comments

Comments
 (0)