Need help with sending push notifications through pushwoosh for web browsers like Chrome and Firefox?

I have successfully implemented Pushwoosh for Chrome and Firefox, and I have also subscribed successfully on both browsers.

To achieve this, I followed the instructions provided in the following link:

These were the steps I took:

  • Removed any references to the old service-worker.js from my site.

  • Included the manifest link in the header (prior to any other manifest links).

  • Removed my website from Firefox notification settings so that I would be prompted to allow notifications again.
  • Uploaded pushwoosh-service-worker-light.js and pushwoosh-service-worker-dark.js to the root of my site.
  • Included the code in the header of my site as per the SDK 2.0 documentation (modifying the applocationCode variable as needed).
  • Cleared the cache in both Firefox browser and Cloudflare, and confirmed that the new code was in place by viewing the source code.
  • Visited my site using Firefox, received a prompt to allow notifications, and selected "always allow notifications".
  • Logged into the Pushwoosh control panel, where I appeared as a new subscriber without issues.
  • Sent a test push notification specifically to Firefox, but the new Firefox subscriber was removed and the notification never arrived.

However, when attempting to send a push notification through Pushwoosh (),

I encountered the following errors in the Push History () for Chrome and Firefox.

Error for Chrome:

"The device token has expired, or the application was unregistered from notifications."

Error for Firefox:

"The pushtoken is not recognized by Mozilla"

This resulted in automatic unsubscribing from both Chrome and Firefox.

I believe there may be something missing in the integration process. How can I successfully send push notifications through Pushwoosh for web (Chrome, Firefox)?

Answer №1

If you encounter any problems, don't hesitate to reach out to Pushwoosh support by visiting their contact page (). Make sure to provide a detailed description of the issue, include the link to your website, and also mention your Pushwoosh login credentials.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is there a way to verify if the input is a numerical value? If it's a string, then display an error

When I press the Send button, I need to verify if the input is a number between 1 and 30. If it is not a number, display an alert as an error message. <form action="index.php" method="post" id="formFlow"> <label for="level">Level:< ...

XHR failing to send JSON data to Express server

My goal is to transmit a JSON object to an express server. Below is the code I have written for the client side: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Express demo</title> </head> &l ...

arrange options in dropdown alphabetically angular 6

Is there a way to load the drop-down in alphabetical order? I am currently using the unique value pipe for the drop down. How can I add another pipe to achieve this? <select class="form-control fix-dropdown" required (change)="batchSorceList(); ...

Spinning a point around the center on a canvas

My friend and I are in the process of creating a game, and we've reached the point where we want to implement a radar system. While we have successfully designed a basic radar that displays everything in the correct positions, our next challenge is to ...

What makes a div with a height of 4 pixels unable to contain an element? The child element ends up being displayed outside of it

After some investigation, I confirmed that the issue was not related to the width. I made the child element 10% wide and only included one element. .pct-bar { height: 4px; background-color: rgba(121, 121,121,.3); .gogo { display: inline-block; // ...

Issues with Custom Cursor Getting Trapped in the Upper Left Corner

I’m having trouble creating a custom cursor with blend mode exclusion. I've tried a few methods, but for some reason, when I added a cursor with blend modes, it only appears in the top left corner of my page and doesn't move. I want it to be th ...

Having trouble with retrieving JSONP data? Unsure how to access the information?

Why do I keep getting a -403 error? https://i.stack.imgur.com/T53O9.png However, when I click on the link, I see this: https://i.stack.imgur.com/8GiMo.png How can I retrieve the message? ...

What is the best way to utilize an AngularJS directive depending on the class assigned by ng-class?

I am currently facing a challenge in applying a directive to an element conditionally based on its class. To illustrate my issue, you can view the results in this JSFiddle link. In this example, I am using ng-class with true boolean values mapped to class ...

Is it recommended to utilize a "default" key within an object?

Creating a JavaScript application and looking to establish a config object. Here's what I have so far: var config = { localization: { locales: ['en', ..., 'de'], defaultLocale: 'en' } } Consideri ...

Mapping and reducing with MongoDB using the node-mongodb-native library

Currently, I've implemented a map/reduce method using node-mongodb-native in an effort to retrieve only distinct records based on 'product_id'. Below is the code snippet: var map = function() { emit("_id", {"_id" : this. ...

D3.js: Exploring the beauty of layered legends

I have a question regarding creating legends with triangle shapes. Specifically, I am trying to create two triangles representing "Yes" and "No". However, when I run the code below, the triangles end up overlapping each other. In an attempt to separate t ...

Issue with VideoJS: MP4 file does not play after dynamically updating video URL

I have been using videoJs to display videos on my website. Below is the HTML code: <video id="player-vjs_html5_api" class="vjs-tech" crossorigin="anonymous" preload="auto" src="http://path-to-video/small.mp4"> <p class="vjs-no-vjs">Your bro ...

Is it possible to add a vertical scrollbar to the vertical navigation pills on a Bootstrap

Is it possible to create a vertical scroll bar for my nav pills when they exceed the screen size? /* * * ========================================== * CUSTOM UTIL CLASSES * ========================================== */ .nav-pills-custom .nav-link { c ...

Is there a way to halt the compiler until an Ajax request is fully processed?

Within my form, there is a field labeled parent keywords as a secret key. The validation of this form using JavaScript functions smoothly. It is designed to check if the secret key is associated with any parent or not. If not, the value is set to 0 by defa ...

Looking for a .NET MVC AJAX search solution. How can I enhance the code below?

I am looking to implement a search functionality using AJAX. I have tried using the get method in my controller by passing the search string, but it is not working as expected. Below is a snippet of my controller code, where I retrieve the search value fr ...

Obtain the three-byte counter from an ObjectId in Mongodb

Is there a way to extract the 3-byte counter, which starts with a random value, from a MongoDB ObjectId? I currently have an ObjectId that looks like this: ObjectId("507f1f77bcf86cd799439011") From what I understand in the MongoDB documentation: Descript ...

Argument-based recursive method

Why is the script only printing 'Hello' and not 'Good bye' as well, even though both are passed as arguments on the function call? What could be causing this issue? Note: The script used to work before. It stopped working after adding ...

What is the best way to modify the properties of an object as soon as a specific condition is satisfied

I'm currently working on enabling a button transition from .disabled = true to .disabled = false. My project involves creating a Yahtzee game clone for entertainment, where players need to select a score to keep after their third roll. Once that choic ...

Mongoose, unable to modify array element: "key ...$... cannot include a period."

Currently, I am in the process of developing a node app with mongoose integration. Within my mongoose schema, I have implemented an array of images as objects with properties. The structure resembles: const schemaPeople = new Schema({ name: { type: S ...

Implementing ElasticUI with AngularJS through efficient dependency injection

Hey there, I'm seeking guidance on how to implement dependency injection in Angular. Currently, I am utilizing ElasticUI which can be found at this link: https://github.com/YousefED/ElasticUI In order to specify the index-name, it must be defined wi ...