Description
NOTE: Please test in a least two browsers (i.e. Chrome and Firefox). This
helps with diagnosing problems quicker.
Please confirm the following:
- I have read the README entirely
- I have verified in the issues that my problem hasn't already been resolved
Setup
Please provide the following details, the more info you can provide the
better.
- Operating System:
PHP 5.6.30 - web-push-php Version: latest as of this date
Please check that you have installed and enabled these PHP extensions :
YUP
Please select any browsers that you are experiencing problems with:
- Firefox for Mobile
54.0.1 - android 4.2
Problem
firefox for android doesn't work with default setting. Works when $webPush->setAutomaticPadding(false); is set .
Errors with the default setting, Haven't checked other values, but the default fails with a 410 error
["message"]=>
string(427) "Client error: POST https://updates.push.services.mozilla.com/wpush/v2/gAAAAA..........M-yXA
resulted in a 410 Gone
response:
{"code": 410, "errno": 999, "error": "", "more_info": "http://autopush.readthedocs.io/en/latest/http.html#error-codes",
Expected
to return true.
Features Used
- VAPID Support
Example / Reproduce Case
function webPush_Register() {
$authPush = array(
'VAPID' => array(
'subject' => 'https://coinvalue.me',
'publicKey' => PUBLICKEY,
'privateKey' => PRIVVATEKEY
),
);
$webPush = new WebPush($authPush);
// $webPush->setAutomaticPadding(false); // disable automatic padding
return $webPush;
}
Other
Thanks for the library :)