react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
749 stars 286 forks source link

App crash when push notification is clicked on app killed state #123

Open uganof opened 4 years ago

uganof commented 4 years ago

RN Version 0.62.2 push-notification-ios 1.2.0

Device Iphone XS

foreground,background works fine. I receive the push notifications, I click on them it goes to app fine.

But if we terminate the app -> send push -> click push -> app crashes

Xcode error:

name __NSCFString * "RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 't.data.aps.alert')\n\nThis error is located at:\n in f\n in Unknown\n in Unknown\n in Unknown\n in Unknown\n in RCTView\n in RCTView\n in RCTView\n in ForwardRef\n in RCTView\n in C\n in ForwardRef\n in PanGestureHandler\n in Unknown\n in RCTView\n in C\n in ForwardRef\n in RCTView\n in G\n in Unknown\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in P\n in y\n in C\n in C\n in Unknown\n in RCTView\n in w\n in Unknown\n in Unknown\n in ForwardRef\n in Unknown\n in ForwardRef\n in RNCSafeAreaView\n in Unknown\n in o\n in RCTView\n in RCTView\n in C" 0x000000010333a440 Anyone has a solution?

saurabh874 commented 4 years ago

I am also facing same issue. anyone have solution for this? even i am getting issue only in iOS 14 beta version