Closed inesga closed 8 months ago
Just checked that if I change the methods in OSFlutterUser.m of OneSignal_flutter pod to this, everything goes well:
(void)removeSms:(FlutterMethodCall *)call withResult:(FlutterResult)result {
NSString *smsNumber = call.arguments;
[OneSignal.User removeSms:smsNumber];
result(nil);
}
(void)removeEmail:(FlutterMethodCall *)call withResult:(FlutterResult)result {
NSString *email = call.arguments;
[OneSignal.User removeEmail:email];
result(nil);
}
@inesga Thank you for investigating we will get that fix in asap!
We have released the fix in Release 5.1.0, so I will close this issue.
Thanks again for submitting this issue!
What happened?
My app crashes when OneSignal.removeSms ou OneSignal.removeEmail is called in iOS. In Android works fine, but in iOS I get the Exception copied bellow.
I found out that the exception is in OSFlutterUser, on the second line of this code:
The Exception I get is this:
Steps to reproduce?
What did you expect to happen?
No error exception.
OneSignal Flutter SDK version
5.0.4
Which platform(s) are affected?
Relevant log output
Code of Conduct