-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat(ios): handle response events for remote notifications [next] #236
Conversation
Codecov Report
@@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 77.33% 77.33%
=======================================
Files 32 32
Lines 1658 1658
Branches 533 553 +20
=======================================
Hits 1282 1282
+ Misses 375 328 -47
- Partials 1 48 +47 |
Hi, iOS quick actions from remote notifications without need of a NSE works perfectly well. However, foreground notifications on iOS no longer work |
@helenaford is this PR still relevant? I'm trying to get PRESS events from remote notifications on iOS. Is this PR something to try or is it because I fon't have an NSE? |
8ffedb2
to
edff37f
Compare
@johnf Yes, it is. I've updated this branch with the latest changes and have published it as a @next release (v6.0.0-0). |
when can we have this feature? because on iOS, we can't receive click event, unless there's other ways for now? |
@helenaford I can confirm that I've tested this and it works as expected. |
This PR is amazing, along with #229 looks like there's a whole bunch of Notifee caveats for iOS being deprecated 🎉 |
Hello, First, I would like to thank you for your work and this amazing library! I've upgraded Notifee to version 7.0.4, and I'm having some trouble understanding how I'm able to get which notification has caused my application to open when it was quit/closed. Previously, I was using I've followed this tutorial (https://notifee.app/react-native/docs/ios/remote-notification-support), set up NSE (which I was already using to attach an image) and I'm receiving my notifications. However, when I click on a notification when the app is quit, the I don't know if I'm misunderstanding the documentation or if I'm missing something. Thank you! |
It says you don't need NSE... |
This is my actual setup on
And it works fine for me on iOS, I just switched from 5.5.0 to 7.1.0 but I was already using it that way with I still use a NSE as well for my notification image Hopefully this helps you |
@venux92 Thank you for your help 🙏 |
// we only care about notifications created through notifee | ||
// handle notification outside of notifee | ||
if (notifeeNotification == nil) { | ||
notifeeNotification = [NotifeeCoreUtil parseUNNotificationRequest:response.notification.request]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI it looks like there is a conflict with the Braze SDK with this line
To reproduce : install notifee and braze. Open your app, send a Braze test IAM campaign, click on the notification to show the IAM. No IAM is shown.
And possibly conflicts with other SDKs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workaround is patching parseUNNotificationRequest with
+ if (userInfo != nil && userInfo[keyToExclude] != nil) {
+ return nil;
+ }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no! Looks like an easy enough local patch-package fix for you (I'd bet $1 you already have that running ;-) ) but a PR here is something we could integrate
@next
release5.0.0-0
So far includes the following events for remote notifications:
Release Notes: