Could you at least say which dependency needs updating, or better yet, submit a PR with the fix?
Sure, our developer at Quemuse submitted a PR:
https://github.com/pmusaraj/discourse-mobile-single-site-app/pull/20
How did you get notifications to work for everyone who downloads the app?
If a user hasn’t signed up yet (which is gonna be 99% of people), they’re gonna skip the prompt, sign up, and won’t receive notifications because they didn’t login with the prompt.
Also, for people who skip the prompt and sign in through the header button, they won’t get notifications either.
Notifications only work on iOS when the person signs in through the login prompt when you first download it. Also, there is no signup link on the login prompt for me.
The app only receives notifications if the user does not skip the prompt. You could delay the prompt until later, but this hasn’t been an issue with real users.
I don’t mean the native prompt that says “Would you like X to send you notifications? Accept or Decline”. I mean the login splash screen that is displayed within the initial installation of the app.
Ah, there should be a “Connect” button. It shows up only after they have logged in, as anon there are no notifications.
Right, my concern is that a new person trying out the app for the first time skips the login splash screen (since they don’t have an account), after using the forum for some time, they decide to create an account. They do so, but now they won’t receive notifications because they didn’t login back when they installed the app.
Currently, we use a disclaimer text in the splash screen to help users understand.
Hi, I was able to install onesignal on my whitelabeled app but the notification are only showed when I open the app. Is there a config I am missing?
Thx!
F.
That seems to indicate that push notifications aren’t configured correctly. Did you build the app with the same PN certificate as what you added to the OneSignal account?
All is working using the discourse plugin. I want to implement a separate push mechanism using onesignal API but I dont know where Discourse is storing Onesignal reference to the user id or the way around.
From the discourse onesignal plugin it seems that the call is made via username ( https://github.com/pmusaraj/discourse-onesignal/blob/master/plugin.rb line 46 ) but there are no tags on Onesignal.
I am curious, is OneSignal push notification still working with the latest iOS?
この素晴らしいアプリを開発してくれた @pmusaraj さん、ありがとうございます。通知が機能するアプリが欲しくてフォーラムで試してみたところ、このアプリで確実に動作しました(Androidでテスト済み)!本当にありがとうございます。しかし、テスト中に3つのバグに遭遇しました。
Xiaomiデバイスでは、アプリが下の方から起動します。この白い帯が気になります。
:::
Samsungデバイスでは、設定のフォントを拡大すると、アプリ内のフォントも非常に大きくなります。一部の要素にアクセスできなくなります。
:::
最後に、絶対に修正が必要なバグです。アプリでDiscourseからログアウトした後も、ユーザー通知が届きます。これはSamsungとXiaomiの両方のデバイスで発生しました。
2024年に使用している人はいますか?
アプリでDiscourse(特にチャット)のiOSプッシュ通知を設定したいと考えています。
@pmusaraj - これに関する最後のコミットは2023年1月でした。これはまだ機能しますか?
そして、このスレッドの他の皆さんに:誰かがこれを積極的に使用しており、これがまだ機能することを確認できますか?
そのままでは動作しないと思います。数年間、このツールをプロジェクトで使用していなかったため、モバイルアプリのビルドツール(良い意味でも悪い意味でも)は急速に変化しており、ローカルで実行することさえ困難になる可能性があります。
@pmusarajさん、ありがとうございます。モバイル部分は自分で対応できると仮定した場合、discourse-onesigna プラグインは引き続き機能すると思いますか?
もし機能しない場合、通知イベントを拾い上げてどこかに送信するための最善の方法について、ご意見をいただけると幸いです。
よくわかりません。2年間アップデートがなく、OneSignal APIが変更されている可能性が高いので、まもなく動作しなくなるのではないかと疑っています。ただし、フォークして自由に構築してください。



