You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, very good package, love it! I use version 0.9 since my PHP is version 7.4.
Most of the times it works as expected. Push notifications to Android Chrome and iOS Safari (90% of user devices) are sending without any issues, I had some issues with Android Firefox, it was throwing 413, but resolved decreasing the max padding length to 2847.
The issue I don't know how to resolve is sending push notifications to my clients using Windows devices, I always get an error 400 for endpoints: https://wns2-par02p.notify.windows.com/w/?token=...
I usualy log the notification errors as it happens, but since PushResponse class has no message property I can't properly debug the issue. Anyone else facing the issue, or knows how o resolve it?
The text was updated successfully, but these errors were encountered:
ignasdamunskis
changed the title
Error 400 thrown for
Error 400 thrown when sending push notification to Windows devices
Mar 15, 2024
Hi! I just had the same problem myself, and found out that Microsoft requires a TTL header to be set when pushing notifications. The easiest way to fix this is by setting a default TTL for the bundle to use inside your services.yaml:
First of all, very good package, love it! I use version 0.9 since my PHP is version 7.4.
Most of the times it works as expected. Push notifications to Android Chrome and iOS Safari (90% of user devices) are sending without any issues, I had some issues with Android Firefox, it was throwing 413, but resolved decreasing the max padding length to
2847
.The issue I don't know how to resolve is sending push notifications to my clients using Windows devices, I always get an error
400
for endpoints:https://wns2-par02p.notify.windows.com/w/?token=...
I usualy log the notification errors as it happens, but since PushResponse class has no message property I can't properly debug the issue. Anyone else facing the issue, or knows how o resolve it?
The text was updated successfully, but these errors were encountered: