Skip to content
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

Firefox for Android doesn't deliver every push notifications #103

Open
way2datta opened this issue Oct 22, 2019 · 10 comments
Open

Firefox for Android doesn't deliver every push notifications #103

way2datta opened this issue Oct 22, 2019 · 10 comments

Comments

@way2datta
Copy link

way2datta commented Oct 22, 2019

Thanks for the library. It is working well for Chrome/Firefox for MAC/Windows.
Also, working well with Edge for Windows and Android Chrome.

However, it is giving me a problem when it comes to Android FireFox.

I can subscribe and unsubscribe from Android Firefox. But when a message is sent to the client on Android Firefox below error is thrown:

local.WARNING: Notification failed to sent for subscription 
https://updates.push.services.mozilla.com/wpush/v2/gAAAAABdrtWvpZ_Cb5z45s6s6Sio_y6twMDdwlG4JDYP4qCHfyByM6khVgqmaBODaDTCLAGrN3gQOgUoHfI_Dz8zZ8Lp3_uE-VSvNTZXWD1Ys7_-sUd8prpRpug5tFyorg8TTCpEHuhJG8ygUUsEcQzMM__RadRsHFvdQkdUnrY7vQ6DUbG_zKA: 
Client error: `POST https://updates.push.services.mozilla.com/wpush/v2/gAAAAABdrtWvpZ_Cb5z45s6s6Sio_y6twMDdwlG4JDYP4qCHfyByM6khVgqmaBODaDTCLAGrN3gQOgUoHfI_Dz8zZ8Lp3_uE-VSvNTZXWD1Ys7_-sUd8prpRpug5tFyorg8TTCpEHuhJG8ygUUsEcQzMM__RadRsHFvdQkdUnrY7vQ6DUbG_zKA` 
resulted in a `410 Gone` response:

{"code": 410, "errno": 999, "error": "",
 "more_info": "http://autopush.readthedocs.io/en/latest/http.html#error-codes",  (truncated...)

@atymic
Copy link
Member

atymic commented May 18, 2020

Are you still having an issue?

@oele-dev
Copy link
Contributor

I still have this issue

@joantp
Copy link

joantp commented Nov 8, 2020

I still have this issue

So do I. Any news, about that?

@sebsobseb
Copy link

Same here

@nyneplus
Copy link

nyneplus commented Dec 17, 2020

Dito
Could it be related to this

Perhaps some where we can add:
$webpush->setAutomaticPadding(2847); $webpush->sendNotification(...)

@maciek-szn
Copy link

I don't know if it's related, but I'm getting version 1 of Mozilla webpush service endpoint (so https://updates.push.services.mozilla.com/wpush/v1/...), instead of version 2. And yes, notifications are not delivered, however there are no errors.

@gbr161
Copy link

gbr161 commented Mar 28, 2022

Hi, im facing this issue too.
I've tried to remote debug firefox on my phone to catch errors but there are none, checked laravel logs - same story.
Im getting the v1 endpoint in database as @maciek-szn.
Notifications work in every other browser except firefox mobile.
Anyone knows what the problem is?

@goaround
Copy link

goaround commented Aug 4, 2022

I run into the same issue. It's explained here: SherClockHolmes/webpush-go#23 (comment)

It's possible to set the automatic Padding to 3052 bytes in WebPush: https://github.com/web-push-libs/web-push-php#how-can-i-disable-or-customize-automatic-padding

It could be added here:

return (new WebPush(

But I think an option in the config to enable it, would be better.

Another automatic way would be to check if the endpoints is v1: https://updates.push.services.mozilla.com/wpush/v1/... and then set automatic padding to 3052 bytes or if not 4078 bytes here:

$this->webPush->queueNotification(new Subscription(

@imrodrigoalves
Copy link

imrodrigoalves commented Nov 25, 2022

I think I've something here guys. Maybe you can make use of it too.

Hope it helps.

#176 (comment)

@markusramsak
Copy link

I tested in Firefox on my Android phone and got the following results:

$webPush->setAutomaticPadding(2820); // still works
$webPush->setAutomaticPadding(2821); // doesn't work anymore (413 Payload Too Large)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests