File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ - (void)addEmail:(FlutterMethodCall *)call withResult:(FlutterResult)result {
109
109
}
110
110
111
111
- (void )removeEmail : (FlutterMethodCall *)call withResult : (FlutterResult)result {
112
- NSString *email = call.arguments [ @" email " ] ;
112
+ NSString *email = call.arguments ;
113
113
[OneSignal.User removeEmail: email];
114
114
result (nil );
115
115
}
@@ -121,7 +121,7 @@ - (void)addSms:(FlutterMethodCall *)call withResult:(FlutterResult)result {
121
121
}
122
122
123
123
- (void )removeSms : (FlutterMethodCall *)call withResult : (FlutterResult)result {
124
- NSString *smsNumber = call.arguments [ @" smsNumber " ] ;
124
+ NSString *smsNumber = call.arguments ;
125
125
[OneSignal.User removeSms: smsNumber];
126
126
result (nil );
127
127
}
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class OneSignalUser {
87
87
/// Returns false if the specified [email] does not exist
88
88
/// on the user within the SDK, and no request will be made.
89
89
Future <void > removeEmail (String email) async {
90
- return await _channel.invokeMethod ("OneSignal#removeEmail" );
90
+ return await _channel.invokeMethod ("OneSignal#removeEmail" , email );
91
91
}
92
92
93
93
/// Add a new SMS subscription to the current user.
You can’t perform that action at this time.
0 commit comments