No notifications with nextpush or sunup with fdroid Jami client

Hello, I’ve just started using Jami and I was trying to setup push notifications on my android phone. In the app I have unifiedpush enabled and the DHT proxy but with these options enabled I don’t seem to receive any messages at all. My device won’t even load messages with the app open. Only when I switch to local DHT node do I start receiving messages and notifications.

Is there anything else you need to to get push notifications working?

OpenDHT isn’t compatible with UnifiedPush AND_3, it doesn’t implement Web Push. :person_facepalming:

So basically unified push doesn’t work in Jami even though the client displays it as an option?

Maybe some legacy UnifiedPush distributors work… If they follow the legacy UnifiedPush specifications…

@Jami Can you try the workaround from Specification compliance status?

A temporary hack is to set content-encoding to aes128gcm and add TTL header, it should be seen as a valid web push message. If the message doesn’t contain any sensitive information, that 's OK.

I don’t know much about Jami/OpenDHT, but from a quick glance it looks like the headers for a unified push request can be modified here

If jami doesn’t respond I think I may look at running my own proxy with the workaround suggested above.

So I decided to test this out myself and the workaround seems to work! I have a self hosted OpenDHT proxy running with the changes in this PR and I am able to get push notifications on my device when I connect to my self hosted proxy.

1 Like

Excuse me, is it possible to set a timer through a serverless fake distributor to wake up a client operating in local DHT node mode?

It is not a good idea, because you have to choose a very high frequency to handle connection requests otherwise Jami will not receive any message.

It’s merged, but dhtproxy2.jami.net didn’t send content_encoding header. :thinking:

I don’t know for sure but I suspect the official proxies aren’t running the update yet. The latest v3.6.0 release doesn’t include the fix Release v3.6.0 · savoirfairelinux/opendht · GitHub