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....
Is there a way in one signal web-push-sdk to add user manually and unsubscribe?  I tried this in my subscribeOneSignal() function but nothing happening.  OneSignal.push(function() {     OneSignal.registerForPushNotifications(); });   I have simple ht...
I am working on cloud messaging using Web FCM. When I send a notification with title and body, both firefox and chrome shows notification and works fine. But when I trying to send FCM Data Message, firefox doesn't receive and log Messages. I am u...
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 created web push notifications and they work in Firefox ok (service worker is registered, subscription created, subscription data stored, using subscription data notification is sent ok). I have tried the same in Chrome and Opera, but nothing...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.