snikket-im / snikket-ios

Snikket iOS client
https://snikket.org/app/ios/
GNU General Public License v3.0
72 stars 10 forks source link

Push notifications not working for iOS users #222

Closed matty-fb closed 1 year ago

matty-fb commented 1 year ago

Describe the bug: Push notifications do not work in the iOS client. Re-registering for push notifications produces an error: "It was not possible to contact push notification component: undefined-condition."

To Reproduce: Send invitation link to iOS user and have them create an account, either via "register an account manually" or via Snikket app.

Software versions: User 1:

User 2:

User 3:

Server software: Snikket release beta.20220119.2 (aarch64 via official docker image)

Additional context: I have tried this with three users on three different iOS devices, each producing the same result. All three users have an empty "push_registrations" entry in the debug info.

Is there anything I can do to remedy this issue? Push notifications work great on my Android phone, but unfortunately all of my invited users are on iOS.

matty-fb commented 1 year ago

This issue was my error - I had not opened port 5269 for s2s communication. I thought this was only needed if federation was desired, not realizing that the mod_cloud_notify and mod_cloud_notify_extensions rely on this port too.

Sorry for the errant report!