Skip to content

fix: avoid crash on iOS 14 when push comes on foreground - #234

Merged
Naturalclar merged 1 commit into
react-native-push-notification:nextfrom
soundgym:master
Nov 22, 2020
Merged

fix: avoid crash on iOS 14 when push comes on foreground#234
Naturalclar merged 1 commit into
react-native-push-notification:nextfrom
soundgym:master

Conversation

@bang9

@bang9 bang9 commented Nov 13, 2020

Copy link
Copy Markdown

@bang9
bang9 marked this pull request as draft November 13, 2020 20:52
@bang9
bang9 marked this pull request as ready for review November 13, 2020 21:03
@bang9

bang9 commented Nov 13, 2020

Copy link
Copy Markdown
Author

If you use react-native-push-notification with react-native-firebase
do not call finish, remote notification will be handled by native firebase sdk with proxy method

PushNotification.configure({
      onNotification: (notification) => {
          // do not call finish
          // notification.finish(PushNotificationIOS.FetchResult.NoData);
      }
})

@polaris018

Copy link
Copy Markdown

It will make to avoid the crash, but Push notifications doesn't work in foreground.

@Naturalclar
Naturalclar changed the base branch from master to next November 22, 2020 07:47

@Naturalclar Naturalclar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm not able to reproduce the crash for my use, so I'll publish new package with this fix as beta

@Naturalclar
Naturalclar merged commit b75c6ed into react-native-push-notification:next Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS App running on iOS 14 crashes every-time new push comes #1569

3 participants