Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Push Messaging not registering #883
I am unable to get ChatSecure to register for push notifications. I have reviewed other issues, but from what I can tell, most are about push as least trying to register but not working. In my case, the app will not register for push notifications.
In the prosody logs, I do not see a request to enable push notification from the device. No attempt is made to connect to any chatsecure.org servers. Does the registration process require any open ports on the prosody server other than the usual c2s & s2s ports (if any at all)?
I suspect that the information provided at https://push.chatsecure.org/api/v1/ is about the API and that I don't need to manually create an account there. Is this correct?
On the iPhone, Background App Refresh is enabled and all Notification options are enabled for ChatSecure. Low Power Mode is off. Any other settings I should check? I have tried Logout/Login, restarting the phone, reinstalling the app.
Any assistance will be appreciated. Thanks.
Wow thanks for the very detailed issue, you definitely did your homework. :) Based on everything you've mentioned it should be working and my personal server setup is almost identical.
The basic push flow is this:
It looks like you're having issues with step 1, but possibly step 2 as well. If you don't see any logs from mod_cloud_notify then it's probably failing on step 1. What happens when you try the "Reset..." button on the info screen with the warning?
Based on the push flow, I also suspect the problem is at step 1. The only thing in the prosody logs for cloud_notify is "Module Loaded" so I don't think I am getting to step 2.
Tapping reset will send the below disable request, but the app never sends an enable request.
<iq type="set" id="ABCDABCD-ABCD-ABCD-ABCD-ABCDABCD"><disable xmlns="urn:xmpp:push:0" jid="pubsub.chatsecure.org"/></iq>
When tapping Reset, a packet trace shows:
Looking at the device console in XCode I can see the following message:
It appears that the app is failing to register the device with push.chatsecure.org. Any ideas what would cause this or how I can debug it further?
Trying a reset again only repeated what I reported earlier (disable sent to prosody, but not enable).
At no time did an enable request get sent to prosody (I currently have the rawdebug plugin installed).
Does step 1 in the push flow rely on any configuration on my prosody server or DNS, or does it only involve the device, your server and Apple?
I got a 7 day trial from https://pushover.net/ and was able to successfully send a message to the iPhone. Both iPhone and iPad are signed in with the same Apple account. I have reinstalled ChatSecure again and it still fails with the message "Device Not Registered".
Me and my friends have the same issue since last friday, used CS for a long time no issues untill last friday.
just started an EtherCalc Pad to collect information about your and others experience about push. Feel free to add your data or additional columns (suggest only to add columns where the information can be given from a normal user)