Closed djon01676 closed 1 year ago
modules:
...
mod_push: {}
mod_push_keepalive:
wake_on_start: true
Is all that's needed.
Did you test with Monal? Snikket? Or Siskin?
/LE: by "all" I mean "for push", you need the rest of the stuff for the other functions :)
XMPP Server - ejabberd-23.04; Client - Snikket;
Should work fine, with that setup, at least in 1:1 messages.
Do try Monal too.
modules: ... mod_push: {} mod_push_keepalive: wake_on_start: true
Это все, что нужно.
Вы пробовали с Моналом? Сниккет? Или Чижик?
/LE: под «всем» я имею в виду «для push», остальное вам понадобится для других функций :)
there should be a notification that it came when the phone is locked now it doesn't have it, although the notification permission is turned on
What if the app is not in foreground? Say you look at a webpage and you get a message?
In ejabberd.log (loglevel 4) do you see info about push servers, about Push being enabled?
mod_push: include_body: "New message" mod_push_keepalive: wake_on_start: true
Unfortunately, notifications aren`t receive on iPhone if the application is running in the background, although everything is fine with Android.
Did you see the .log messages about push for that account?
Yes when we just close the application we have this problem
Closing c2s connection for client9@host/Snikket.NNHM: Connection failed: connection closed; waiting 300 seconds for stream resumption
Oh, this should be in ejabberd not -contrib, btw
You may need to register apns servers for s2s ???? because I have no idea how to solve this problem
or use this mod
No, I meant the issue should have been filed in https://github.com/processone/ejabberd/issues/ instead
Why is the resource named "Snikket" but the push server is tigase.im ?
You have more users on that server and some use Snikket and some Siskin?
Did you try Monal too?
Do you see messages like mod_push:enable/4:336 Enabling push notifications for user@domain
in the .log ?
You may need to register apns servers for s2s ???? because I have no idea how to solve this problem
No, nhe client does so, eg. Siskin/Snikket/Monal from Apple Appstore or Conversations from Google Play
or use this mod https://github.com/mrDoctorWho/ejabberd_mod_apns
No extra module needed, no, just that module config as I said above
this is my config
You have more users on that server and some use Snikket and some Siskin?
yes
And for your test user?
thank you, the problem was with the client
@djon01676 explain the issue and the fix
@djon01676: How have you fixed the problem?
Please tell me which module to work with APNS, becouse message does not report.