react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
731 stars 280 forks source link

-[RNCPushNotificationIOS addNotificationRequest:] NSInvalidArgumentException - -[NSNull un_stringWithMaxLength:]: #416

Open SurajMohanty02 opened 11 months ago

SurajMohanty02 commented 11 months ago

Hii, I'm getting this error when i click on notification while app is in background then it opens and closes.. When i checked crashlytics then i got this ### -[RNCPushNotificationIOS addNotificationRequest:] NSInvalidArgumentException - -[NSNull un_stringWithMaxLength:]: unrecognized selector sent to instance

Please help me

Details:- Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x92c60 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 1 libobjc.A.dylib 0x14ee4 objc_exception_throw 2 CoreFoundation 0x1636e8 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 3 CoreFoundation 0x2c54c (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 4 CoreFoundation 0x2b75c (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 5 UserNotifications 0x26dd0 -[UNNotificationContent encodeWithCoder:] 6 Foundation 0x70ec0 (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 7 UserNotifications 0x16044 -[UNNotificationRequest encodeWithCoder:] 8 Foundation 0x70ec0 (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 9 Foundation 0x43e6c (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 10 Foundation 0x5c3d8 (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 11 Foundation 0x427f0 (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 12 Foundation 0x84170 (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 13 Foundation 0x265fc (Missing UUID c3a840e10d1132a3937f7f668ffb13f0) 14 UserNotifications 0x2b764 __104-[UNUserNotificationServiceConnection addNotificationRequest:forBundleIdentifier:withCompletionHandler:]_block_invoke 15 libdispatch.dylib 0x64094 _dispatch_client_callout 16 libdispatch.dylib 0x11964 _dispatch_lane_barrier_sync_invoke_and_complete 17 UserNotifications 0x2b5f0 -[UNUserNotificationServiceConnection addNotificationRequest:forBundleIdentifier:withCompletionHandler:] 18 UserNotifications 0x29514 -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:] 19 retailAppRN 0xb8b40 -[RNCPushNotificationIOS addNotificationRequest:] + 329 (RNCPushNotificationIOS.m:329) 20 CoreFoundation 0x20cf0 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 21 CoreFoundation 0x3cdd8 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 22 CoreFoundation 0x7120c (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 23 retailAppRN 0x16b5fc -[RCTModuleMethod invokeWithBridge:module:arguments:] + 587 (RCTModuleMethod.mm:587) 24 retailAppRN 0x16d5e0 facebook::react::invokeInner(RCTBridge, RCTModuleData, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 183 (RCTNativeModule.mm:183) 25 retailAppRN 0x16d230 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 419 (Optional.h:419) 26 libdispatch.dylib 0x63094 _dispatch_call_block_and_release 27 libdispatch.dylib 0x64094 _dispatch_client_callout 28 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain 29 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp 30 CoreFoundation 0x4e014 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 31 CoreFoundation 0xb4f8 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 32 CoreFoundation 0x1e174 (Missing UUID 717d70c93b8e3abcae16050588fc3ee8) 33 GraphicsServices 0x1988 GSEventRunModal 34 UIKitCore 0x4e57d8 (Missing UUID f0bf656b50133cbb86f6209c26014b21) 35 UIKitCore 0x27ec70 (Missing UUID f0bf656b50133cbb86f6209c26014b21) 36 retailAppRN 0x4b54 main + 7 (main.m:7) 37 ??? 0x1053944d0 (Missing)

EGreg commented 8 months ago

anyone found the reason yet? also need help