OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[Bug]: OneSignal.User.addTagWithKey method crash app in IOS when pass boolean #728

Closed rafaelbarbosadrip closed 1 year ago

rafaelbarbosadrip commented 1 year ago

What happened?

When we call the method OneSignal.User.addTagWithKey passing the boolean value the app happen crash (close suddenly)

Steps to reproduce?

When we call the method `OneSignal.User.addTagWithKey` passing a boolean like this example:

OneSignal.User.addTagWithKey('anyKey',true);

What did you expect to happen?

Set the tag and not crash the app.

OneSignal Flutter SDK version

5.0.0

Which platform(s) are affected?

Relevant log output

Could not cast value of type '__NSCFBoolean' (0x10c8ba3b8) to 'NSString' (0x10ccb2b48)

Code of Conduct

emawby commented 1 year ago

Thank you for reporting this is fixed in #733

emawby commented 1 year ago

Closing with the release of 5.0.1