# OneSignal integration / push notifications

**URL:** https://meta.discourse.org/t/onesignal-integration-push-notifications/101227
**Category:** Support
**Created:** [November 3, 2018, 7:57pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227 "2018-11-03T19:57:23Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)
#### Post date: [November 3, 2018, 7:57pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/1 "2018-11-03T19:57:24Z")

</div>

Hi All,

i try to setup the onesignal service : [https://onesignal.com/](https://onesignal.com/)

so i did :

- add the following plugin : [GitHub - discourse/discourse-onesignal: Discourse plugin to send Push Notifications via OneSignal. · GitHub](https://github.com/discourse/discourse-onesignal)  
-then added the api infos,  
-then added the code in the header.

But i’m facing this error in the onesignal dashboard :  
 ![18](https://global.discourse-cdn.com/meta/original/3X/c/1/c10d4a2f786c5e246360b0c6e991ce7dd5d9d940.png)

it fail to load this file : [https://francais-a-londres.org/OneSignalSDKWorker.js?appId=“bliblaapinumber”](https://francais-a-londres.org/OneSignalSDKWorker.js?appId=%22bliblaapinumber%22)

I guess i’m failing at uploading the sdk onesignal files. Any idea on how to do so ? on a digital ocean instance ?  
@pmusaraj maybe you have an idea ?

Many thanks,

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [November 4, 2018, 4:50am UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/2 "2018-11-04T04:50:25Z")

</div>

Did you setup OneSignal to send Web Push Notifications? The `discourse-onesignal` plugin should only be used for iOS notifications, the screen above with the “Service Worker 404” error does not look like an iOS issue.

So, if you’re trying to set up OneSignal for an iOS app, the first step is good (installing the discourse-onesignal plugin), but the second step should be to start setting up the app according to the instructions in the repository at [GitHub - pmusaraj/discourse-mobile-single-site-app: Single-site app wrapper for a Discourse site. Supports Push Notifications via OneSignal. · GitHub](https://github.com/pmusaraj/discourse-mobile-single-site-app)

---

<div class="post-metadata">

### Author: ![Jeremie\_Leroy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremie_leroy/32/84427_2.png) [@Jeremie\_Leroy](https://meta.discourse.org/u/Jeremie_Leroy)
#### Post date: [November 4, 2018, 7:41am UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/3 "2018-11-04T07:41:22Z")

</div>

thank you @pmusaraj,

i was trying to use the web push notification. This is why it wasn’t working. thanks for your help.

---

<div class="post-metadata">

### Author: ![Fausto\_Dassenno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fausto_dassenno/32/166480_2.png) [@Fausto\_Dassenno](https://meta.discourse.org/u/Fausto_Dassenno)
#### Post date: [February 26, 2020, 1:48pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/4 "2020-02-26T13:48:32Z")

</div>

Hi all,

what is the system that connects player-id from Onesignal with userid in Discourse?  
I searched but on my users list in Onesignal there is no data about the discourse user and in discourse I was not able to find any reference to the Onesignal user.

Thx

F.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 26, 2020, 2:08pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/5 "2020-02-26T14:08:13Z")

</div>

The username is sent to OneSignal as a tag (and the discourse plugin uses that as its target for push notifications).

[https://github.com/pmusaraj/discourse-mobile-single-site-app/blob/master/js/Manager.js#L70](https://github.com/pmusaraj/discourse-mobile-single-site-app/blob/master/js/Manager.js#L70)

---

<div class="post-metadata">

### Author: ![Fausto\_Dassenno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fausto_dassenno/32/166480_2.png) [@Fausto\_Dassenno](https://meta.discourse.org/u/Fausto_Dassenno)
#### Post date: [February 26, 2020, 2:21pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/6 "2020-02-26T14:21:03Z")

</div>

I see your point but my users have an empty tag on the Onesignal dashboard

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/7/3793ee563998f47ad521c851616854423dd6e7bd.png)

but the push is working…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 6, 2024, 1:05pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/7 "2024-02-06T13:05:43Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 6, 2024, 1:11pm UTC](https://meta.discourse.org/t/onesignal-integration-push-notifications/101227/8 "2024-02-06T13:11:14Z")

</div>


