iGotify-Notification-Assistent icon indicating copy to clipboard operation
iGotify-Notification-Assistent copied to clipboard

[BUG] Notifications arrive encoded/encrypted but display correctly in-app.

Open seesee opened this issue 10 months ago • 29 comments

** Issue ** When an igotify notification event triggers, it arrives on my phone/watch in a base64-encoded form (or at least something that looks like that). My efforts to diagnose the issue have come up blank. I've tried upgrading and reinstalling the various components. The notifications in the app itself are rendered correctly.

Expected behavior Notifications are decoded and rendered correctly

Screenshots Image Image

Smartphone:

  • Device: iPhone 14 Pro
  • OS: iOS 18.3.1
  • Version of Container: 1.3.0.0
  • Version of iGotify: 1.4.2

Additional context Container log:

Message converted: {"id":2121,"appid":4,"message":"This is a notification from Beszel.\n\nhttp://localhost:8090","title":"Test Alert","priority":0,"date":"2025-02-16T19:03:37.181869663Z"}
WS Instance from: Cbrt4CycbLuJQ4B
SGfHgzAdX3ZxaF+xN+sNW1LkbjGtJpa3/88ZmE1HqgRb3ccF7Hojs2Xt4VSBI17oD1VbTs+BReAmQmKuINOizRdm121hZzK2On54wNq0YVfligWx1TSmz7zJ0HqfmJ5Mqe/GZdzFtfWrei2Q/G5VS5w5iTbvLo/BXCGZRJ4V0oR1clAUypnbFcraicEYEqZjOSyiMbj0LU304lO9NjwE5WGu8pKwfzHymmZdoJqY4IudeeiX2OLiG+wqTz7ZCBIaLszy5ToSOJrYyZIXv9dU2xqRSZbeIS6wSzNR/PlePXS6+ukJJLkDVEt0Cvc9+ANAQunpAIEAI8q1uXF2iASIFg==

I fully suspect user error/misconfiguration somewhere on my part, but I can't figure out what I've missed/done wrong. Also, everything used to work flawlessly until relatively recently.

seesee avatar Feb 16 '25 19:02 seesee

It looks like that you're Public or private Key for encoding/decoding is wrong 🤔 the only way is to reinstall the app then you get a new one.

I can also try to add a new function to reconfigure public/private key in the app

androidseb25 avatar Feb 16 '25 19:02 androidseb25

Thank you, reinstalling fixed it -- previously, I did try deleting and re-adding the instance within the app but the issue persisted and I hadn't tried a full delete/redownload. Adding a mechanism to reconfigure keys sounds like an excellent idea, but you could just put a note in the docs to suggest reinstalling if the messages arrive encoded.

Many thanks again!

seesee avatar Feb 16 '25 19:02 seesee

you welcome, the refresh function is now in planned.

androidseb25 avatar Feb 17 '25 08:02 androidseb25

@androidseb25 would you consider to reopen this issue?

I have the same behavior - however only one source shows the encoded/encrypted notification. So it should not have to do with an expired key...

Messages from diun, ProxMox or the gotify cli app are shown correctly, messages over gotify-alertmanager-plugin from my prometheus instance are showing exactly the unreadable message from the igotify logfile.

Could that be?

I can happily help to debug or test if you need it.

App: 1.4.2 (32) Gotify: 2.6.1 iGotify: 1.3.1.0

Thank you.

Peter

logopk avatar Feb 19 '25 16:02 logopk

I think it's not an igotify problem when it work on other notification systems, I think it's the plugin you use

androidseb25 avatar Feb 19 '25 16:02 androidseb25

Hmm, the message is shown in the app - like above in the screenshots - only the notification is bad...

logopk avatar Feb 19 '25 17:02 logopk

I can reproduce it:

▶ gotify push --priority 10 -t "🔥 🆘 🆘 🆘 Minimal https://example.com" "Summary: A summary!
Description: A description!
Go to Alertmanager
🔥 🆘 🆘 🆘 https://example.com
Go to Prometheus
StartsAt: 2020-02-02T02:02:02.020Z
EndsAt: 0001-01-01T00:00:00Z
Fingerprint: 1234
"

and this is not via Plugin but the message...

logopk avatar Feb 19 '25 17:02 logopk

Stripped it down to 🔥 in both Title and Message

logopk avatar Feb 19 '25 22:02 logopk

I'm also seeing the same issue, will try and reinstall to see if that fixes it.

EDIT: re-installing worked for me.

aptonline avatar Mar 02 '25 20:03 aptonline

Issue found and it will be fixed in the upcoming update

androidseb25 avatar Aug 13 '25 19:08 androidseb25

I also have the issue, so it is not fixed so far ....

MartinHaimberger avatar Nov 15 '25 13:11 MartinHaimberger

+1

logopk avatar Nov 15 '25 13:11 logopk