-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push when ChatSecure is totally off #930
Comments
Hi, |
To be fair this should be better documented in a FAQ somewhere because it's asked all the time, and the fix involves a non-standard server patch to mod_cloud_notify and that isn't part of the XEP-0357 spec. |
Sorry I have read #770 about 100 times again and again.. I'm using the ejabberd not the prosody and the issue does not seem exactly what i'm having... the push works quite well when the app is on.. but if off it simply does not arrive. I was trying to find a similar issue about no push when ChatSecure is closed from background but I couldn't find one and thus I posted it. After I turn it on it gets all the pushes again. If this is #770 then what should I do to make it work in ejabberd? is this the @weiss patched mod_push? The mod_push has been merged into ejabberd so what exactly is required to be done to make it work? I'm using ejabberd 18.01, latest stable which seems to have merged the @weiss push here: processone/ejabberd#1881 |
With ejabberd you need mod_push, but as far as how to use / configure it I'm not sure. Can you run https://github.com/iNPUTmice/ComplianceTester against your server and check if XEP-0357 is marked as supported? |
Done:
Seems push works fine, right? Do you suggest I should switch from ejabberd to prosody? Thanks for the quick replies, guys! |
Hm, looks like it should be fine, but you might want to enable MAM / MAM-MUC once we ship a stable release with client support for it. |
@chrisballinger : so what could be the problem that when I force close the ChatSecure app in iOS the notifications don't get to my phone.. In the ejabberd I see that the offline message causing the iq request to push.chatsecure.org like this:
If the app is in background - even very long - the push works correctly. |
The non-standard change mentioned above tells ChatSecure's push service to use a different type of APNS notifications. This type has the downside that the user will only see "New Message!" notifications on his lock screen, but it works more reliable. I have plans to add this change to ejabberd's |
@weiss Actually there's not a downside because it works side by side with the existing infrastructure, so I send out two APNS pushes for each push iq, one foreground one background. This way there's still a chance the app will wake up in the background. @br0xpl This is my patch for Prosody's push module: chrisballinger/prosody-modules@4048627 |
Oh nice, I wasn't aware. If the app does wake up, is it able to edit/replace the "New Message!" notification(s) after fetching the actual message(s)? |
@weiss Yep! |
@br0xpl - Have you had any luck? @chrisballinger - Hello! I suspect I'm having a similar issue to @br0xpl. Should I post in this thread or over in #770? Specifically, my friend has an iPhone 8 (iOS 11.2.6), and he's been having trouble receiving notifications of my messages. Sitting with him today, we found that a way to guarantee not receiving any messages is to double press the home button and then swipe out ChatSecure from task manager as @br0xpl described in his first post here. I'd love to help get to the bottom of this. Do you have any tips for what I should investigate? (While I don't happen to own an iPhone, I do have a MacBook and love to code... I'm just not familiar with iOS development.) I'm running Prosody 0.10.0-1 (Debian amd64) with mod_cloud_notify from chrisballinger/prosody-modules@4048627 -- a tip I gathered from reading this thread as well as #770. I've also tried On my end, I'm running Conversations 1.23.8. I've also run
And does this screenshot help at all? So, I'm just scratching my head and wondering what other secret sauce I'm missing... :) Thank you for your help! Update: I'll try again tomorrow now that I've enabled a few more modules:
(before, I was missing pinger, throttle_presence, filter_chatstates, and pubsub...) Also, I was getting errors like
until I commented out |
@dholl: the thread relates to ejabberd rather than prosody. You should rather look at #770 for prosody. I have switched to prosody 0.10 from @chrisballinger repo and the cloud notify works quite well even if the app is closed. Sometimes I get too many pushes but the reset helps to clear this issue out. @weiss, @chrisballinger : do we close the issue, or we leave it open to find somebody to fix ejabberd pushes? |
It is, now. |
I'm using mod_push in ejabberd from @weiss and push seems to be reliable. But most of the time, the notification text does not get replaced. I observed that the true message body is only displayed if ChatSecure is not in the background. |
I also see the case where I get two notifications for a single message, i.e. I then see both a "New Message!" notification and another one that shows the actual message body. So it seems for me, this doesn't (always?) work:
|
The text cannot be replaced on the static notifications. We do try to clear out all of the static notifications when the app is launched, and then put out local notifications that have message content. |
I'm having the same issue, when chatsecure is closed (not running in the background), no message arrives. I'm using prosody and have cloud_notify configured. |
Hi,
I have a question:
Is it normal that the push notification are delivered correctly when the app is in background.
But if I close the app (totally even from background by swiping out in task manager) the push doesn't work? Is this normal? Can I somehow get the messages even when the app is closed? E.g. the Whatsapp works this way -> even if off push works..
Thanks!
The text was updated successfully, but these errors were encountered: