urbanairship / airship-flutter

Flutter integration
Other
17 stars 16 forks source link

app crashed in ios when push received #102

Closed huhuan-yj closed 2 years ago

huhuan-yj commented 2 years ago

❗For how-to inquiries involving Airship functionality or use cases, please contact (support)[https://support.airship.com/].

Preliminary Info

What Airship dependencies are you using?

airship_flutter 5.0.1

What are the versions of any relevant development tools you are using?

[✓] Flutter (Channel stable, 2.2.0, on macOS 11.4 20F71 darwin-x64, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] IntelliJ IDEA Community Edition (version 2018.1.5) [✓] VS Code (version 1.57.0) [✓] Connected device (3 available)

Report

What unexpected behavior are you seeing?

click the notification and open app ,then crashed, it only happened on iphone

What is the expected behavior?

click the notification and open app, app can open successful

What are the steps to reproduce the unexpected behavior?

just send a push message with deeplink, and click the message when push received

Do you have logging for the issue?

I see the log, and found that "type 'Null' is not a subtype of type 'String'" error in class airship_flutter.dart line 60. It reference the notificationId cannot be null. Then I went to the airship docs,found notificationId only used in Android. But I don't known if it was the real cause. image image

rlepinski commented 2 years ago

Thanks for the report, we will look into this

Ulrico972 commented 2 years ago

Hello, we released today a version of our flutter framework that should fix your issue. I'm closing this issue, feel free to reopen it if it's not resolved.

huhuan-yj commented 2 years ago

Hello, we released today a version of our flutter framework that should fix your issue. I'm closing this issue, feel free to reopen it if it's not resolved.

Thanks a lot , after upgrade the new version, it resolved