The discussion focuses on implementing push notifications for a white-label Discourse app that operates as a webview. Mohsin136 asks how to integrate push notifications given their custom setup, noting they’ve already set up Firebase and APNs but are unsure if a backend server is needed and how it would communicate with the forum. merefield suggests the OneSignal plugin, referencing a GitHub repo and a meta-discourse topic, though it’s archived and may need updates. pmusaraj confirms the plugin is outdated and not functional due to login flow changes, but proposes using Amazon SNS instead via the discourse-amazon-sns plugin, which lacks documentation. They offer to accept user contributions to create documentation if the setup works.
We have customized the Discourse mobile app to function primarily as a webview that loads the URL of our community, with all interactions managed within the webview. Since there are no redirected authentication screens in our implementation, how can we integrate push notifications into this app?
We have already created a Firebase project and added the google-services.json file for Android, and similarly, APNs has been set up for iOS. Do we need our own backend server to trigger notifications? How would this backend communicate with our forum—for instance, how would it determine when to send a notification and which user should receive it?
Yes, correct, that plugin is archived, because I haven’t used it in years and I don’t know if it works at all. (In particular there’s a login flow tweak in there that is probably no longer functional.) In any case, forking is an option.
I am realizing now that it doesn’t have any documentation. It shouldn’t be too hard, the plugin only has a few settings. I’ll make a note to write a documentation topic, but @Mohsin136 if you’re familiar at all with SNS, you can give this a shot. And if it works, I would gladly accept your rough notes as a source for a documentation topic (it would save me some time).