airship_flutter: ^4.0.0
pubspec.lock: airship_flutter: 4.4.0
(Know this isn't the latest version but looking at the repo this issue is still present in latest)
Report
What unexpected behavior are you seeing?
When receiving a push notification payload on the client after triggering a push from the Apptentive Message center using their airship integration, the deserialization of that payload fails because there is no notification object in the payload.
The instance member notification is non-nullable, but the _fromJson method uses a late declaration and a null check in conjunction when they shouldn't be if notification can be null as it is in my case.
What is the expected behavior?
Expect notification to be nullable if not present in payload
What are the steps to reproduce the unexpected behavior?
Send a notification without a notification property
Preliminary Info
What Airship dependencies are you using?
airship_flutter: ^4.0.0 pubspec.lock: airship_flutter: 4.4.0 (Know this isn't the latest version but looking at the repo this issue is still present in latest)
Report
What unexpected behavior are you seeing?
When receiving a push notification payload on the client after triggering a push from the Apptentive Message center using their airship integration, the deserialization of that payload fails because there is no
notification
object in the payload.The instance member
notification
is non-nullable, but the_fromJson
method uses alate
declaration and a null check in conjunction when they shouldn't be ifnotification
can be null as it is in my case.What is the expected behavior?
Expect
notification
to be nullable if not present in payloadWhat are the steps to reproduce the unexpected behavior?
Send a notification without a
notification
propertyDo you have logging for the issue?