processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
250 stars 140 forks source link

Ejabberd Message delivery while application is terminated (IOS) #325

Closed djon01676 closed 1 year ago

djon01676 commented 1 year ago

Please tell me which module to work with APNS, becouse message does not report.

licaon-kter commented 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 :)

djon01676 commented 1 year ago

XMPP Server - ejabberd-23.04; Client - Snikket;

licaon-kter commented 1 year ago

Should work fine, with that setup, at least in 1:1 messages.

Do try Monal too.

djon01676 commented 1 year ago
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

licaon-kter commented 1 year ago

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?

djon01676 commented 1 year ago

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.

licaon-kter commented 1 year ago

Did you see the .log messages about push for that account?

djon01676 commented 1 year ago

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

licaon-kter commented 1 year ago

Oh, this should be in ejabberd not -contrib, btw

djon01676 commented 1 year ago

You may need to register apns servers for s2s ???? because I have no idea how to solve this problem

djon01676 commented 1 year ago

or use this mod

https://github.com/mrDoctorWho/ejabberd_mod_apns

licaon-kter commented 1 year ago

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 ?

licaon-kter commented 1 year ago

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

djon01676 commented 1 year ago

this is my config

djon01676 commented 1 year ago

You have more users on that server and some use Snikket and some Siskin?

yes

licaon-kter commented 1 year ago

And for your test user?

djon01676 commented 1 year ago

thank you, the problem was with the client

licaon-kter commented 1 year ago

@djon01676 explain the issue and the fix

Neustradamus commented 5 months ago

@djon01676: How have you fixed the problem?