Closed antoinefBam closed 3 years ago
Hi there, this is strange. when you say "I can't figure out what may have changed. It is even weirder since building my app at the first commit Notification Service Extension was implemented in my app (and worked at the time) does not resolve the issue.", does this mean you see the problem locally too? or just in production?
Hi there, this is strange. when you say "I can't figure out what may have changed. It is even weirder since building my app at the first commit Notification Service Extension was implemented in my app (and worked at the time) does not resolve the issue.", does this mean you see the problem locally too? or just in production?
Both locally and in production
if you see this locally, i'd say it's to do with your setup. Has anything changed with your iOS configuration? Have you tried to go back to the stage where it was working in your project (revert any commits to the last place you saw it working)?
What I am trying right now is to remove then setup again notifee + extension service on IOS. I will keep you informed 👍
To do a quick debug, leave it the service extension code as
self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];
self.contentHandler(self.bestAttemptContent);
if title isn't changing, you know 100% that your extension isn't being triggered.
To do a quick debug, leave it the service extension code as
self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title]; self.contentHandler(self.bestAttemptContent);
if title isn't changing, you know 100% that your extension isn't being triggered.
Thank you for this hint I will give it a try !
@helenaford Thanks for your help.
After doing some cleanup and adding the [modified]
tag in the extension service it appears that this one is doing his job properly 🙃
It made me realize that I actually had 2 independent concerns.
First one (image not displaying in addition to body/title issue) probably comes from the notification sender (Customer.io <> Firebase) which from time to time cut some of the data I send. So I guess Notifee has nothing to do with this. I will investigate further on my side.
Second one (No handler triggered on notification clicked when app was in killed state). Following the advice provided in this pinned issue, in my home page I use the notifee.getInitialNotification()
method to recover the involved notification and do some redirection accordingly. The problem is that the retrieval of the initialNotification
is very inconsistent (4 times out of 5, the method returns null
when I just click on the notification to open the app). Do you have any idea why ?
Concerning this issue I guess we can close it as it does not seem to concern the Notification Service Extension in the end.
hey, good news about the extension. to make it clearer and easier to help with your concerns, could you make the second concern into its own issue, and create one for the first concern once you've finished investigating. and, i'll close this one.
Hi,
Just after it was released I've implemented the Notification Service Extension for IOS in my project. At this time all was working well.
I was able to send notification payload like this trough FCM:
Then notification was received and displayed properly. Then background message handler received the right event when notification was clicked etc.
After some time in production we noticed it stopped working. Notification are still displayed but only handled by FCM (basic body/title notification, image does not appear anymore). No event is detected in background handler when notification is opened. In fact only in-app notifications are still processed by Notifee in the IOS app. Other notifications seem to be detected by FCM only.
I've noticed some open issues about difficulties to fire event when notification is clicked but in my case it goes even further in the sense that the notifications never reach the service.
I can't figure out what may have changed. It is even weirder since building my app at the first commit Notification Service Extension was implemented in my app (and worked at the time) does not resolve the issue.
Here are the versions used for the involved libraries:
Do you have any idea/clue about what may have happened ? Or any information to take my debugging process further ?
Thanks in advance !