Search Issue Tracker

Fixed in 1.1.0-preview

Votes

0

Found in [Package]

2018.4

2019.3.14f1

2020.2

Issue ID

1251504

Regression

No

[iOS] crash when Notification with Data parameter set to null is pushed due to uncaught exception 'NSInvalidArgumentException'

Package: Mobile Notifications

-

Reproduction steps:
1. Open project in "MobileNotificationsBug.zip"
2. Build the project for iOS and Deploy it to an iOS device using Xcode
3. Allow notifications when prompted
4. A 5-second timer will start and when it reaches 0 a Notification will be pushed
5. The notification has the Data field set to null "PushNotificationTest.cs" line 70

Unexpected behaviour: when the notification has been pushed the Game crashes due to unhandled 'NSInvalidArgumentException'

Reproducible with: 2018.4.22f1, 2020.2.0a13

Devices tested:
Reproducible with:
VLNQA00310 iPad Pro 12.9 (iOS 13.4.1)
VLNQA00204 iPhone 5C (iOS 10.3.3)

Few lines from stack trace (full trace in edits):
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x0000000183c6cd88 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000183b851e8 libsystem_pthread.dylib`pthread_kill$VARIANT$mp + 136

Comments (3)

  1. socialmedia_unity209

    Jun 25, 2021 00:17

    Thanks for your post. I'm half suprised... very informative https://github.com/davitomasi/davitomasi/blob/gh-pages/index.md

  2. socialmedia_unity209

    Jun 25, 2021 00:03

    Thanks for your post. I'm half suprised... very informative

  3. dcoded4

    Mar 08, 2021 07:19

    Thanks for the information. I've definitely pick up something new from right here.

    sugarzo.com

Add comment

Log in to post comment