-
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
[iOS] issue with NSE and use_frameworks! #130
Comments
So update on this - I added some code to adjust titles on notifications so I could figure out if they were being displayed via the Notification Service, Background Handler, or Foreground Handler in the app. The plain text notification is from the Relevant lines from
The additional notification with the image is coming from the firebase I am guessing I have misunderstood something here - my assumptions/problems I am running into are as follows. Does anything here point out where I may be going wrong or have misunderstood a concept?
Update: it seems that after several minutes, only the Service Extension notification happens until the app is re-launched again..so its like the firebase handler is still active for several minutes after the app is quit? So that duplicate notification only happens for a little bit after the app is quit it seems...which...is fun.
|
|
1 - 3 - Thank you! I wrapped my head around that a little more over the last few days (I should have updated this in the meantime) and changed the function invoked by 4: Thats where I am at now, the service extension appears to be triggered but does not appear to be applying the notifee 'features' to the message before it gets displayed. I also added a different subject to the fallback aspect as well to rule that out as a possible issue as well, which, is not the case. So, yes, any help getting that working would be great, I am really not sure where to start with it since everything appears to be set up, except if 5 is what is causing the issue. 5: That could be the case, so far I have only tried with the image option of notifee_options so I'll fiddle with something else as well. Admittedly I'm not strong on the native side, but yes there's swift so we can't remove the |
So where I am at now, I need help getting the NSE to actually make notifee post the message, as it's requiring a workaround to handle initial notifications since the I am able to make things work by using the firebase Thank you! |
@bperlman can you share what's in the native logs, filtering by |
Is there somewhere I can send that log output to you so it's not in a public issue? (Easier than having to scrub it all). The image works fine when the app is in the foreground and Notifee is handling the display of the notification on the JS side, and the image shows up fine on Android, so the image being broken seems unlikely. Unfortunately, I don't have time to create a blank project to test the Thank you :) |
@bperlman you can try our Discord server https://discord.gg/pSGPWHgd then I think you may be able to DM either |
Ok, thanks @mikehardy I'll give that a try! |
@helenaford I've sent you a request on Discord for whenever you have time, can continue there. Thanks again for your help! |
@bperlman Was there any resolution here? I'm running into the exact same issue. Aside: I really appreciate your thorough notes! |
hey @brandonpearcy - no there was no resolution, @helenaford and I chatted a bit but our schedules didn't really line up - I am also not super well versed on the native side so my ability to troubleshoot there is somewhat limited...it does appear that this may be a problem that requires an update to notifee though as far as I can tell thus far...not sure if @helenaford has any updates... |
Hey all, there's an alpha release that's just been published that will eliminate the need for an NSE if you don't need to modify any content but just use notifee to manage the following events - |
Thanks for the update! The part where I am still stuck is the NSE doesn't seem to modify to add images, etc, while |
ah ok, gotcha! sorry, yeah you would still need the NSE 🤔 mmmm... Would you be able to clone our example app and push up a repro? |
I, unfortunately, don't have the bandwidth to do that right now. But it seems that others are having the same issue. Since this is a paid license I would respectfully ask that this digging be done on the invertase side if at all possible. Since I dont have time to dedicate to creating that reproduction right now, I've kind of been ok with living with it for now. Perhaps others that are having the same trouble may be able to jump in if they have some more time available |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
Following the directions exactly from the documentation, when providing the notifee_options key as below, I get two notifications displayed when the app is in a killed state. One with just the plain notification, and one with the image attached. I only get the double notification on iOS as well.
This doesn't happen when the app is in the foreground or background (presumably since those are not handled by the NotifeeNotificationService).
I have no other Notification Service Extensions in the app.
Do you have any ideas of what could be causing this? At a bit of a loss.
The text was updated successfully, but these errors were encountered: