jeudi 15 novembre 2018

web push subscription not valid in database

please help me out

web push notification working fine on localhost but not on shared hosting.

shared hosting (https) logs =>

  1. service worker registers successfully

  2. notification permission displays

  3. notification permission successfully granted or declined by users
  4. subscriptions successfully registers to the database table
  5. notification message returns 201 code after sending a push message ("successfully sent") after success rows of push subscription gets deleted from the database column which means subscriptions that were deleted are not valid.

Note* vapid public and private keys were generated live from the firebase user account

localhost logs => * all works fine

Please help, is there anything i am missing?

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire