-
Siskin IM does not reconnect upon receiving push notifications. Instead, it displays notification containing details related to the notification which were sent in the push notification. Then, if users tap on the notification, Siskin IM starts and reconnects to the XMPP server.
This behavior was chosen by us to reduce the amount of energy used by the app, as each reconnection consumes energy.
-
@hantu85 Oh, that's good to know. It'd be nice to be able to configure this behaviour though, in case you do not want to leak metadata to the centralised push service by including the sender into the push notification.
Additionally the prosody logs look like not even this push notification is being sent. I'm still awaiting feedback on my Prosody bug report though.
-
I do not think that we would change behavior of push notifications as reconnection upon receiving each notification is a waste of energy. As for privacy, Tigase XMPP Server offers encrypted push notifications. In this case, Siskin sends AES128GCM key to the server and the server sends encrypted metadata of the message to the client using APNS. More details about this feature available at https://tigase.github.io/tigase-xeps/docs/push-notifications/encrypt/
-
@hantu85 Just out of interest, how do you handle incoming JINGLE calls when the app is not woken up? Does iOS have a dedicated push notification for voice calls?
-
I'm tested Siskin 6.2 on iOS 12.5.1 Iphone 5s and push is working after 10-60 minutes and more after disabled "csi_battery_saver"; module in Prosody conf.
But on Iphone 11 ios 13, Siskin 6.2 this is not help. After that i'm upgraded to iOS 14.4 and this not help two.
In logs i'm finded:
NOT invoking cloud handle_notify_request() for newly smacks queued stanza (session.push_identifier is not set: <nil>)
when send to Iphone 11 and he sleep.
Describe the bug
First of all, this could be caused either by prosody not properly processing and sending push events or by Siskin.im not properly registering as a push service. So this needs expertise from both sides.
After Siskin.im gets terminated in the background and thus disconnects from the server, it is not properly woken up when new messages arrive. Push messages have been activated in the account settings.
To Reproduce Steps to reproduce the behavior:
Expected behavior The suspended client should be woken up by a push message and reconnect.
Smartphone (please complete the following information):
Additional context
The bug report on the prosody side contains detailed server logs for this issue. https://issues.prosody.im/1544