-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS App running on iOS 14 crashes every-time new push comes #1569 #163
Comments
Getting same issue, Can someone please check this , app is crashing on push only in iOS 14
|
iOS 14 is released today, and we're experiencing this in our production app right now. I'll try to do some investigating myself and report back here, but I am generally unfamiliar with the implementation of push-notification-ios. Would appreciate any insight the rest of the community can provide on this crash. |
The crash happens consistently when a push notification comes in on an iOS 14 device, in this code block (line 287 of RNCPushNotificationIOS.m): It seems that the crash is related to this addition to AppDelegate.m required by the push-notification-ios's README:
When I comment out Here is the Xcode debug console output at the time of the crash:
|
@saurabh874 @San10694 the workaround I'm currently deciding on is to comment out line 287 of RNCPushNotificationIOS.m ( |
Same issue |
same issue, any update? |
did anyone manage to solve it? |
#163 (comment) This workaround works for me but I suppose no new update |
Work around also worked for me. |
I am facing the same issue on |
I am noticing this too on my app since ios 14 |
Hello! I'm trying to address this issue with my iOS14 device, but I'm unable to reproduce the issue. Would someone be able to create a reproduction repo for this issue? |
@Naturalclar Yes Still we are facing same issue. and this issue is come only when app is in foreground. |
You only need device on ios 14 and app in foreground receiving push |
I'm using a physical iOS 14.1 device (iPhone 7) tried both local notification and push notification (using Pusher), tried both foreground and background but the notification seems to work fine. |
It will help if some one can provide a repository that will reproduce the crash so I could investigate further :) |
Hi @Naturalclar |
tried on fresh RN 0.63.3 with GCM push notification - crash on every device with iOS 14+, maybe push provider is the reason |
btw on simulator push notifications works perfect even in foreground, got crash only in test flight and production |
Any updates? |
I have same issue, commenting |
Also having the same issue on RN 0.61.4, iOS 14+. Was able to resolve by commenting the line recommended above, but following to see if the issue is resolved. |
I've released |
released v1.8.0 that should fix the issue |
Thanks @Naturalclar! Can you share what was the issue, and why moving completionHandler() resolves it? |
can confirm, version 1.8.0 not crashing anymore, but foreground push is not visible (event is firing) |
@tmmgn I'm using |
I was facing the same problem in one of my projects, it seems that Apple has changed some very important aspects of Push notifications which affected many apps out there. It was possible to fix this issue following the steps posted by the user "edelabar_pmd" on their official forum: https://developer.apple.com/forums/thread/660149 Although after following the changes in the link above I found out that all these errors were gone for users running the app on iOS 14.2. I imagine it could be a very strong lead to first try building the app in this version before trying to change anything in the code (as this probably seems to be Apple's mistake, not the library's). |
if you use RN 0.63.2 and fire-base ver 5.6.x Please follow the following link. It worked for me !!!! |
i have same issue and solved with remove firebase messaging, in this case i remove @react-native-firebase/messaging |
Device iPhone X
version- iOS 14 beta version.
App is crashing every time once new push come.
anyone have solution for this.
The text was updated successfully, but these errors were encountered: