-
Notifications
You must be signed in to change notification settings - Fork 263
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
[Bug]: Silent notifications #1351
Comments
@raphaels17 Thank you for reporting. When the device is open and the notification is sent do you see any logs from OneSignal when verbose logging is enabled? If so could you share those logs in order to help us fix this issue? Additionally you could try debugging the Notification Service Extension target or looking at logs from that target. If the NSE is never hit/you don't see any logs then the notification isn't making it to the app. If the NSE is hit and you do see logs then the notification is being received by the device, but the SDK is not forwarding it properly. |
I encountered the same issue. It suddenly stopped working since I upgraded to v5.0. The normal push notifications still works for me. But silent notification with content_available no longer works. Tested with FCM and even directly with APNS server, both methods are working for me. Currently I temporarily migrated all silent notifications to use APNS server. |
the NSE is never hit/ I don't see any logs for silent notifications. I we will start working on migrating our app to go via APNS first, this is way too critical. |
I have the same problem since mid December last year: silent notifications via OneSignal stopped working without any change at my side. Only non-silent notifications work. I already had an endless but slow interaction with OneSignal support, but it seems that they can't reproduce the problem at their side. Perhaps a part of their servers are using incorrect code. I'm currently also switching to directly sending notifications requests to APNS. |
My guess is that the issue lies with how NSE is being handled cause our user base have different version of the framework and only those on 5 have the issue. |
This is not an issue with the NSE since I don't believe that the NSE should ever be notified of "content available" notifications, but I am able to reproduce the problem and am investigating. |
@raphaels17 In your original post you mention that the second curl request worked and the first one didn't. Could you clarify what exactly you changed to make the request work for you? |
Fwiw I am seeing same problem on SDK v5 but was reproducible on v3 as well. I have a handler for When sending a background notification to the same client via the Apple's Push Notification Console, the remote notification handler is invoked. Which leads me to believe the issue may be between OneSignal and APNS. Perhaps a missing/incorrect header value? Is OneSignal sending the headers |
@avargaskun Exactly! Additional question: Is OneSignal sending the correct headers for background notifications on all their servers? It seems that since mid December last year, at least a part of OneSignal servers stopped using the correct implementation for background notifications for APNS. |
Just to add that I'm experiencing the same issues; silent notifications stopped working in December with zero code changes using iOS SDK 3.12.5. I've migrated to SDK 5.1.0 and am still seeing the same issue. Regular notifications are firing fine but any with |
I am also experiencing the same behaviour. Silent Notifications are not being received from OneSignal since December. |
the difference which is not showing is that i had set a title and a message, which someone is missing. |
Same issue here, spent hours debugging it :(. |
Is there anyone having this issue using paid plan ? I reported this issue to one signal multiple times since December but they refused to investigate, always replied me that everything is working fine from their side which made me think that they might stop supporting silent notifications for free tier, just that they don't make it public. |
After disabling and then enabling the app in the "Keys & IDs" section of the app settings in the OneSignal dashboard, silent push notifications seems to work again. I'm not sure if this is the result of my actions in the dashboard, or that the bug was already fixed earlier. |
@everyone |
This appears to be working again. I will close the issue but please feel free to tag me to reopen if it resurfaces. |
It is not working for us yet, also tried disabling and then enabling the app in the "Keys & IDs" section. |
I tested and confirmed this is working again, wasted so much time debugging and implementing alternative solutions :( |
For what it is worth the onesignal tem is actively looking into it :" Hi there, Currently we are still looking into this. Once we have more information, we will update you again!" |
@raphaels17 I am no longer able to reproduce the issue so I am hoping I could get some more information on your setup in order to resolve this. You posted some api requests in order to reproduce the issue.
|
this is test test device 739c2606-3e54-4a79-aac1-c99106a00f17
I notice there is an update 5.0.6 in the making in which @emawby you seem to be a major contributor . In there I see bits of code that are related to iOS such as
Should i update to an unpublish version to benefit from the fix ? |
After further debugging it is fixed for me as well . this userinfo came in a different format than visible notification so i fixed that Since I seem to be the last that was impacted i close the issue. |
What happened?
I am on OneSignal 5.0.5 , iOS17.2 Xcode 15 now and followed documentation for UNNotificationServiceExtension, since I dont get how to get silent notification in any context ( foreground / background)
On the opposite if it work if the notification has a context .
I Have tested on both simulator and real devices with that example :
Can anyone help ?
Steps to reproduce?
What did you expect to happen?
I'd expect func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) to get hit and be able to process silent notifications
OneSignal iOS SDK version
5.0
iOS version
15
Specific iOS version
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: