Skip to content
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

UnifiedPush not working with Conversations #3571

Open
blaueente opened this issue Oct 1, 2024 · 8 comments
Open

UnifiedPush not working with Conversations #3571

blaueente opened this issue Oct 1, 2024 · 8 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@blaueente
Copy link

blaueente commented Oct 1, 2024

Steps to reproduce

  1. Select "Conversations" as UnifiedPush provider
  2. Run notifications Troubleshoot tests

Outcome

What did you expect?

Working notifications (they work with other demo programs)

What happened instead?

Error
"Fail to check the gateway
https://up.conversations.im/_matrix/push/v1/notify: HTTP 404 Not Found"

Apparently the URL for using conversations as a push gateway is wrong. Maybe it's the "_matrix"? or is "v1" a too old version? Anyway, testing with https://f-droid.org/packages/org.unifiedpush.example/ works.

Screenshot_20241001-130537

Your phone model

Pixe

Operating system version

Android 14 AP2A.240905.003.F1

Application version and app store

Element X Version 0.6.3 (from playstore)

Homeserver

matrix.org

Will you send logs?

Yes

Are you willing to provide a PR?

No

@blaueente blaueente added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Oct 1, 2024
@spaetz
Copy link

spaetz commented Oct 1, 2024

This is because ntfy includes a matrix gateway (https://github.com/binwiederhier/ntfy/blob/630f2957deb670dcacfe0a338091d7561f176b9c/server/server_matrix.go#L16) that is, it receives calls to /_matrix/push/v1/notify and sends them out via UnifiedPush.

conversations (https://codeberg.org/iNPUTmice/up) does not contain a matrix push gateway, and that is needed for EXA. So it won't work. Either conversations' up needs to include a Matrix gateway, or the Matrix homeserver needs to be taught to directly speak to a UnifiedPush server.

The Matrix gateway is what is called the "push gateway" in the diagram at https://spec.matrix.org/latest/push-gateway-api/#overview

@amalon
Copy link

amalon commented Oct 3, 2024

conversations (https://codeberg.org/iNPUTmice/up) does not contain a matrix push gateway, and that is needed for EXA. So it won't work. Either conversations' up needs to include a Matrix gateway, or the Matrix homeserver needs to be taught to directly speak to a UnifiedPush server.

What is EXA? I see the same issue with NextPush, which works fine as a UnifiedPush provider with normal Element on android, so I'm confused why NextPush would need matrix-specific changes for ElementX to work?

@spaetz
Copy link

spaetz commented Oct 4, 2024

Looking at the code, it should fall back to use the standard matrix.org gateway if the UnifiedPush server does not provide one. Not sure what is happening there, I am not a developer myself.
P.S. EXA is short for Element-x-android

@ccgauvin94
Copy link

At some point this was working with EXA and NextPush but seem to have stopped.

@herbsmn
Copy link

herbsmn commented Oct 15, 2024

I'm having this problem too. It started after I updated Element X to the most recent version.

@devurandom
Copy link

Looking at the code, it should fall back to use the standard matrix.org gateway if the UnifiedPush server does not provide one. Not sure what is happening there, I am not a developer myself.

#3185 seems to request what you describe.

@p1gp1g
Copy link

p1gp1g commented Nov 1, 2024

The cause of this issue is that EAX now expect a self-hosted matrix push gateway and never fallback to a default one: #3388 Reverting this should fix this issue

@devurandom
Copy link

devurandom commented Nov 4, 2024

I have a similar issue with the gCompat UP-Distributor (https://unifiedpush.org/users/distributors/fcm/): When I run Settings > Notifications > Troubleshoot, I get "https://fcm.distributor.unifiedpush.org/_matrix/push/v1/notify is not a Matrix gateway".

See-also: https://codeberg.org/UnifiedPush/fcm-distributor/issues/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

7 participants