I am trying to send a new push subscription to my server but am encountering an error "Uncaught (in promise) SyntaxError: Unexpected end of JSON input" and the console says it's in my index page at line 1, which obviously is not the case....
Push subscription has unsubscribed or expired, with statusCode 410, in less then 24 hours.  I'm using web-push to send notifications with fcm-endpoint & vapidDetails. It works fine for few hours, I can send notifications. But just after few h...
I have a web application. I want to use the HTML 5 inbuilt notifications API to do push notifications from the server when the user is on a particular page. Is it possible?...
I am implementing the Webpush ruby gem to send push notifications to users of my website.   Server code:    Webpush.payload_send({       message: notification.message,       url: notification.url,  # I can't figure out how to access this key...
Is it possible to catch unsubscribe event ?  This is the code im using to subscribe the user to the notifications  if ('serviceWorker' in navigator) {     navigator.serviceWorker.ready.then(function(reg) {       reg.pushManager.subscribe({...
I am currently facing an issue with some Chrome (Chromium) version where the PushManager.subscribe promise from a ServiceWorker stays in a pending state.  The code itself is pretty simple :  return serviceWorkerRegistration.pushManager.subscribe({...
I've got the following code that registers a service worker and asks the user allow notifications. I'm getting an error after the user allows the push notifications where the promise returned by serviceWorkerRegistration.pushManager.getSubscr...
Trying to implement web push notifications using FCM.  I am able to receive push message with payload on browser using firebase cloud messaging library.  Below is a javascript code snippet.  <script src="https://www.gstatic.com/firebasejs/3.5....
Here is a nice documentation on how to implement Google Cloud Messaging (GCM) in Chrome. But I do not found any reference here or anywhere how to subscribe to a topic using javascript (for Chrome).  Here I have found a reference how to do the task fo...
I am using FCM to handle push notifications, but notification is coming in data key instead of notification.   Here is the code I am using to handle new message and show as notification. I am seeing notification with all options and data as I specifi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.