did i miss something to let push notification works ?

Friday, April 26, 2024 12:26:30 PM
  • Posted: Thursday, August 8, 2019 9:29 AM
  • 56
hi

please i try to use push notification throw firebase and i try all steps here : https://grandnode.com/how-to-configure-push-notifications

but i c that all PushRegistration are allowed = false and token = [DENIED] - so please can i know what is may the problem

after i add configuration from admin file "firebase-messaging-sw.js" was updated with config data , but file "jquery.push.notifications.js" still as it ?!!

    url: "",
    SenderId: "",
    ApiKey: "",
    AuthDomain: "",
    DatabaseUrl: "",
    ProjectId: "",
    StorageBucket: "",


so did i must config it manual ? and please how can i make PushRegistration has token ?


0
  • Posted: Thursday, August 8, 2019 9:31 AM
  • 56
note

when i try to send message from admin i got this "No receviers yet. Wait for someone to register for push notifications."
0
  • Posted: Friday, August 9, 2019 5:40 AM
  • 953
Hello Ahmed,

I've just configured the push notifications on our test server and everything works fine. Below is the screenshot with today date:


Something wrong is with your store, can you check it on default clean installation?
Best regards,
Patryk

GrandNode Team
0
  • Posted: Wednesday, August 14, 2019 8:21 AM
  • 56
Patryk wrote:
Hello Ahmed,

I've just configured the push notifications on our test server and everything works fine. Below is the screenshot with today date:


Something wrong is with your store, can you check it on default clean installation?


thanks for you reply

i need to inform you that in localhost (develop pc) notification is works and i can view it as you did, but in live server not working and i found that on console :

The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS.


Unable to get permission to notify.  e {code: "messaging/permission-blocked", message: "Messaging: The required permissions were not grant… blocked instead. (messaging/permission-blocked).", stack: "FirebaseError: Messaging: The required permissions…tatic.com/firebasejs/4.12.1/firebase.js:41:21181)"}


so please are live server must be https for make it work ?
0
back to top
Filters