tigase / siskin-im

(M) Public Project of Tigase Messenger for iOS devices based on Tigase Swift XMPP library.
GNU General Public License v3.0
173 stars 37 forks source link

Notification Not Working For MUC #99

Open Ged296123 opened 3 years ago

Ged296123 commented 3 years ago

Describe the bug Message to MUC from other client does not generate notification on iOS.

To Reproduce Steps to reproduce the behavior:

  1. Create / join a MUC with participants from various servers (participant using Siskin IM may or may not be on tigase.im)
  2. Send message from / to MUC for all parties to confirm bidirectional communication works for everyone
  3. Start another app (no need to terminate Sisikin IM)
  4. Lock iOS (iPad or iPhone)
  5. Have 3rd party (i.e. user on Conversations) send message to MUC
  6. No notification generated for Sisik IM.
  7. Start Sisikin IM
  8. Siskin IM comes online, MUC message recieved.

**Expected iOS should notify Sisikin IM user that there is a message for MUC momentarily after message is sent from 3rd party participant.

Screenshots N/A

Details (please complete the following information):

Additional context Add any other context about the problem here.

mwlczk commented 3 years ago

@ged296123: this is most likely a server related issue. If your server is not tigase, then you run into this issue

Ged296123 commented 3 years ago

@Ged296123: this is most likely a server related issue. If your server is not tigase, then you run into this issue

Hi mwlczk,

In the above instance iOS participant was tried with tigase.im. However, it didn't make a difference. Tried all combinations with conversations.im, tigase.im, yax.im, jabber.hot-chilli.net on Siskin IM and as 3rd party.

mwlczk commented 3 years ago

So the user has an account @tigase.im and is using siskin-im-app and he still does not get a notification in a muc on the tigase.im server, thats odd.

But please check in the muc-settings if the user gets notified "always", "when mentioned" or has set the muc to "muted"

Ged296123 commented 3 years ago

Room details showed notifications "when mentioned". Changed this to "always." Didn't make a difference.

hantu85 commented 3 years ago

@Ged296123 just to confirm, you were joined to MUC room on muc.tigase.im using a SiskinIM client connected to the account on tigase.im and no other device was connected to this account?

Ged296123 commented 3 years ago

@hantu85 hello. 2 different processes tried. In both of them, Siskin IM client was used with tigase.im account and no other device was connected to this account.

  1. The MUC room was created by 3rd part client (on Conversations) with their own account (i.e. on conversation.im) and an invitation to Siskin IM was sent to join. Joining room and initial messaging was successful (as described in steps 1-2 above)
  2. The MUC room was created by Siskin IM and invitations were sent to users on conversations.im, yax.im and jabber.hot-chilli.net. Creating room and initial messaging was successful (as described in steps 1-2 above).
hantu85 commented 3 years ago

@Ged296123 but was MUC room on muc.tigase.im or not?

Ged296123 commented 3 years ago

@hantu85 the MUC room was on conversations.im

hantu85 commented 3 years ago

As it was mentioned in #25, there is no standardized specification for a notification from MUC rooms when you are not connected, as according to MUC specifications when you are going offline then you are leaving the MUC room. There is a workaround available in Siskin IM which AFAIK works only with Tigase servers.

The only issue which can be fixed here is to not show (or make it possible to set) the "notification" setting for rooms on servers not supporting this workaround.

Also as stated in #25, there is already a MIX specification that should supersede MUC specification and which allows being part of the MUC room even when not connected and this specification is supported by SiskinIM.

Ged296123 commented 3 years ago

It's a shame Apple puts the apps to sleep, notifications are not a problem on Android. I understand not receiving notifications from Public Groups after having left the room, but for Private Groups it shouldn't be so. Maybe MIX or a re-view on the XEP in the near future can happen. IMO, this is a major dealbreaker for most people when deciding between federated XMPP and proprietary messaging. Thanks for your attention and response @hantu85.