OneSignal 集成 / 推送通知

Hi All,

i try to setup the onesignal service : https://onesignal.com/

so i did :

But i’m facing this error in the onesignal dashboard :
18

it fail to load this file : https://francais-a-londres.org/OneSignalSDKWorker.js?appId=“bliblaapinumber”

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,

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 https://github.com/pmusaraj/discourse-mobile-single-site-app

thank you @pmusaraj,

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

大家好,

连接 Onesignal 中的 player-id 与 Discourse 中的 userid 的系统是什么?

我搜索了一下,但在 Onesignal 的用户列表中,没有看到关于 Discourse 用户的数据;在 Discourse 中,我也未能找到任何与 Onesignal 用户相关的引用。

谢谢,
F。

用户名作为标签发送到 OneSignal(Discourse 插件将其用作推送通知的目标)。

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

我明白您的意思,但我的用户在 OneSignal 仪表板上显示为空标签

不过推送功能正常……