When using Airship.addEvent(event) iOS doesn't add the event if the CustomEventvalue is null because of this line in SwiftAirshipPlugin.swift:
guard let value = event[eventValueKey] as? Int else {
result(nil)
return
}
What is the expected behavior?
On Android the event is still recorded. I would expect the same for iOS or for the value to not be optional or at least a warning in the code saying a non-null value needs to be passed in.
What are the steps to reproduce the unexpected behavior?
Set up a custom event like this:
final event = CustomEvent('event name here', null);Airship.addEvent(event);
The event will not be added or show up in the Airship console.
Preliminary Info
What Airship dependencies are you using?
airship_flutter: ^6.2.2
Report
What unexpected behavior are you seeing?
When using
Airship.addEvent(event)
iOS doesn't add the event if theCustomEvent
value
is null because of this line inSwiftAirshipPlugin.swift
:What is the expected behavior?
On Android the event is still recorded. I would expect the same for iOS or for the value to not be optional or at least a warning in the code saying a non-null value needs to be passed in.
What are the steps to reproduce the unexpected behavior?
Set up a custom event like this:
final event = CustomEvent('event name here', null);
Airship.addEvent(event);
The event will not be added or show up in the Airship console.