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?
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?