Minishlink / web-push-php-example

An example for sending Web Push notifications, using web-push-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mozilla on android | Not working?

kushubham9 opened this issue · comments

Hi,
I tried to execute this on mozilla android browser. Though the subscription is successful, notifications are not getting delivered.

Does firefox on android not support VAPID? Is FCM essential for it?

V. 54.0.1

I am confused. What role does FCM plays with mobile browsers?

Hi, please see the discussion web-push-libs/web-push-php#108

With Firefox for Android, FCM is a bridge between the Mozilla's autopush subscription and Google notification system.

@Minishlink Thanks a lot. It does solve the problem when I disable the padding.

However, I did not get your last part.

  1. Where exactly is FCM coming into play in a typical flow? [I used only VAPID]
  2. Can we send notification through FCM without VAPID on android devices?
  1. You don't have to worry about FCM when using web-push-php with VAPID.
  2. Yes, but only in Google Chrome for Android, so it's not recommended.