Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0' #1315

Closed
1 task done
Chhay67 opened this issue Sep 11, 2023 · 0 comments

Comments

@Chhay67
Copy link

Chhay67 commented Sep 11, 2023

What happened?

VERBOSE: onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler:
2023-09-11 11:42:08.644464+0700 Runner[2055:437404] VERBOSE: onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler: Fired! sf
VERBOSE: OSNotificationWillDisplayEvent.preventDefault called.
-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0'
*** First throw call stack:
(0x1b006de48 0x1a93438d8 0x1b01e282c 0x1b0083f60 0x1b00ec330 0x10449ae00 0x104a3dacc 0x104a3d99c 0x104a412e8 0x1b263a028 0x1b2447c80 0x1b2447a28 0x1b2447868 0x1c5d9566c 0x1c5d954a8 0x1c5d98c24 0x1c5d98b40 0x104a8e05c 0x104a91ad8 0x1c5da2d40 0x1c5da28dc 0x1c5da5184 0x1b0139f34 0x1b014630c 0x1b00ca1d0 0x1b00dfb8c 0x1b00e4ec0 0x1ea13b368 0x1b25da86c 0x1b25da4d0 0x104498770 0x1ce906960)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0'
terminating with uncaught exception of type NSException

Steps to reproduce?

Thread 1: "-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0"

What did you expect to happen?

Thread 1: "-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0"

OneSignal iOS SDK version

5.0.0

iOS version

12, 11 or below

Specific iOS version

11

Relevant log output

Thread 1: "-[OSNotificationWillDisplayEvent toJson]: unrecognized selector sent to instance 0x28383caf0"

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Chhay67 Chhay67 closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant