Unknown opened 2 years ago
|
|
Do you ask here first for the latest push setup advice for iOS compat: xmpp:prosody@conference.prosody.im?join |
|
Latest? For how long the documented way is obsolete? It's clearly seen from the above that the stanza's being sent to the push.tigase.im and it even ack's it. But nothing arrives on the phone. Anything else the im server can do? |
|
This outgoing stanza looks like a stanza used to register for push notifications at our push component and not the actual stanza with push notification (it is sent from a full JID, instead of bare JID or even just a domain name which is used for sending push notifications and its id is UUID which is used for generation of ids by SiskinIM and not used by Prosody for push notifications AFAIK) https://hg.prosody.im/prosody-modules/file/fe5303da99cb/mod_cloud_notify/mod_cloud_notify.lua#l341 |
|
You're right, that UUID confirms it. |
|
There are however "Invoking cloud handle_notify_request() for offline stanza":
P.S.: It's a freakin' nightmare debugging on a live server... |
|
Could you check if in your case Prosody is conffigured to send If possible, I would recommend if possible and available, enabling this module https://hg.prosody.im/prosody-modules/file/tip/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua as it has support for sending encrypted push notifications over APNS and it is supported by SiskinIM (I'm not sure whether it is enabled on your installation or not). |
|
I only know from random chats that for Snikket iOS some prosody stuff for better push was developed. @mwild1 Ping |
|
The inclusion of a
Another good question is how to make a stanza important if your statement is true? There are some hardcoded workarounds, may be Tigase also needs one?
As I said
|
|
Thank you, will check on it. |
|
For Snikket it's all the same, no notifications whatsoever. It has two small lua modules, tried them with no luck.
Seeing |
|
In this case, would you be able to catch the full XML stanza of the message which is not triggering a push notification? Maybe with that and the example Prosody configuration of your installation we would be able to find out why no push notification is being triggered. |
|
@sirrosh Also, be sure you have lua-ossl installed, as per https://modules.prosody.im/mod_cloud_notify_encrypted |
|
Yes it is, otherwise |
|
Would appreciate your help on how to do it ;) As I said the |
|
@sirrosh Maybe @mwild1 will be able to help you. I'm not a prosody developer or user. |
|
Continuing deeper into the
This is how other (non-tigase) cloud_notify event and push stanza look:
But for the tigase push client it's only:
|
|
Pretty please join the Prosody support MUC so they can help you. |
Describe the bug Push notifications not working, meaning no notifications at all while the app is in the background.
To Reproduce Steps to reproduce the behavior:
Expected behavior After step 5 you should hear an incoming message notification on a locked phone.
Details
Additional context The moment the phone stop receiving notifications is exactly when the socket closes, after the "Connection closed" log message in Prosody. Both incoming and outgoing s2s connections to the push server are active:
Outgoing connection establishing:
As well as the incoming:
An offline stanza is being sent to the tigase push server:
after a while the server replies:
But nothing appears on the iphone's screen...