Skip to content

[iOS 7.1.2][0.29.0] RCTPushNotificationManager throws NSInvalidArgumentException [UIConcreteLocalNotification category] #8662

@jan-happy

Description

@jan-happy

Tested my app on an old iPhone 4 with the latest iOS Version for it.
Runs fine on other devices with iOS 8&9, but raises this exception on iOS 7.1.2

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIConcreteLocalNotification category]: unrecognized selector sent to instance 0x15df9cb0'

Commenting out line 45 and 75 in RCTPushNotificationManager.m fixed it for me since I don't need categories in my local push notifications.

45 //notification.category = [RCTConvert NSString:details[@"category"]];
75 //formattedLocalNotification[@"category"] = RCTNullIfNil(notification.category);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions