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

size of payload must not be greater than 4078 octets #369

Closed
hudakhshfeh opened this issue Apr 2, 2023 · 2 comments
Closed

size of payload must not be greater than 4078 octets #369

hudakhshfeh opened this issue Apr 2, 2023 · 2 comments

Comments

@hudakhshfeh
Copy link

Sometimes this error appears on some transmissions, although it successfully sends the same message to other people
What is the cause of this error and how do I correct it
Help please

@DorianThDev
Copy link

DorianThDev commented Apr 26, 2023

Hello,
There are not real standards for push notification services, and some does not support this playload lenght. If affects the push behavior on some browsers as Firefox for Android.
Reducing the playload lenght and automatic padding can be a solution :

$webPush = new WebPush();
$webPush->setAutomaticPadding(2048);

@Minishlink
Copy link
Member

Yes, see #108

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

3 participants