react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
745 stars 285 forks source link

Completion handler is not called #311

Closed apfritts closed 1 year ago

apfritts commented 3 years ago

The provided completionHandler is being saved to the remoteNotificationCallbacks dictionary, but the native onFinishRemoteNotification:(NSString *)notificationId fetchResult:(UIBackgroundFetchResult)result function didn't actually lookup and call the completion handler.

I believe this fixes that bug and addresses #216 #244 #297 as well.

leethree commented 3 years ago

Looks great. I think the example project needs to be updated as well 👍🏼

apfritts commented 2 years ago

@leethree I updated the example project and rebased my PR. I still need to re-confirm that this is functioning properly before it gets merged since there seem to have been quite a few other commits since I opened this.

christophercarney commented 2 years ago

This is still an issue -- any updates on when this can get reviewed and merged?

chrisbobbe commented 1 year ago

This merged work looks like an approximate revert of 1506ddf36 / #241, which was marked as addressing #163. Do we expect #163 not to be re-introduced?

floydkim commented 8 months ago

@chrisbobbe @Naturalclar I'm experiencing this issue https://github.com/react-native-push-notification/ios/issues/163 after bumping to 1.11.0. (previously 1.10.1) I think, in my project, there's some duplicated handling of FCM event. (I'm using a couple of libraries that deal with FCM events.)

I think we need to be clear about the responsibilities of this library.