ios icon indicating copy to clipboard operation
ios copied to clipboard

PushNotificationiOS crashes app for iOS 14

Open chahinaghrim opened this issue 5 years ago • 11 comments

Current Live App uses React-Native : 0.62

We currently use the PushNotificationiOS service for changing the badge count of our app. Currently, whenever a user that has an iPhone with iOS 14 gets a notification, the app gets following error and crashes the app:

img_3167cef17973-1

For all users below iOS 14, the service works well. Even when upgrading react-native to 0.63 and upgrading PushNotificationIOS to 1.6.0 , it keeps crashing the app.

Need help asap. Thanks in advance!

chahinaghrim avatar Oct 16 '20 19:10 chahinaghrim

I am facing the same behaviour on react native 0.63.3, ios 14.0.1, PushNotificationIOS 1.6.0. Any solution?

ghasemikasra39 avatar Oct 19 '20 08:10 ghasemikasra39

Same for me, after upgrading to IOS 14

hasfoug avatar Oct 19 '20 08:10 hasfoug

Same for me, I had to patch the package to remove the completionHandler as recommended above

alon7 avatar Oct 24 '20 15:10 alon7

@ghasemikasra39 upgrade to 1.7.1. Remote notification is working for me with rn 0.63.3 and iOS 14.0.1

fatihyildizhan avatar Oct 30 '20 12:10 fatihyildizhan

Same as here. RN 0.61.5 and PushNotificationiOS 1.3.0 The app crashes after tapping a push notification (iOS 14) Need help asap. Thanks in advance!

Matchdev120 avatar Nov 06 '20 13:11 Matchdev120

Same for me, I had to patch the package to remove the completionHandler as recommended above

Patching to remove the call of completionHandler, the remote notification still working?

douglasdc avatar Nov 13 '20 13:11 douglasdc

Is this similar to https://github.com/react-native-push-notification-ios/push-notification-ios/issues/163 Can it be patched in the same way? https://github.com/react-native-push-notification-ios/push-notification-ios/pull/234

raldred avatar Nov 13 '20 14:11 raldred

I've released 1.7.5-beta.0 with potential fix for this. I wasn't able to reproduce the crash with the original package, so could someone verify that this change fixes the crash?

Naturalclar avatar Nov 22 '20 07:11 Naturalclar

I've released 1.7.5-beta.0 with potential fix for this. I wasn't able to reproduce the crash with the original package, so could someone verify that this change fixes the crash?

Hei, I tested with that beta and it keeps happening. I have used that package as dependency of push-notification to trigger a local notification.

The android package request the following use notification.finish(PushNotificationIOS.FetchResult.NoData); and that is what is causing the trouble, removing it, or commenting the handler solves that issue.

The error: Screen Shot 2020-11-23 at 10 26 50

douglasdc avatar Nov 23 '20 13:11 douglasdc

upgrade version 1.8.0 fixes this problem. tested on iOS 14.2, 14.3 and react-native-0.64.rc1

Lkubok avatar Dec 09 '20 21:12 Lkubok

React-native push notification ios Causes app crash for me in ios 14 and pushNotification Ios 1.8.0 . The App Crashed when the Notification Registers in AppDelicate.m

saadalvi92 avatar Aug 06 '21 12:08 saadalvi92