#Amethyst v0.80.1: FOSS Push Notifications

This version adds support for UnifiedPush to the FOSS edition of Amethyst. Make sure to have one of the [UnifiedPush](https://unifiedpush.org/) apps installed to receive Notifications. Once installed, Amethyst will ask which distribution app to use. If the app is paid, make sure to have enough credits in that system.

- Adds support for Unified Push in the FOSS edition by nostr:npub1a3tx8wcrt789skl6gg7rqwj4wey0j53eesr4z6asd4h4jwrd62jq0wkq4k

- BugFix for missing push notifications when using Google's edition

- Creates a ViewModel store for each user, which allows faster memory cleanup when switching accounts.

- Fix crash when uploading images/videos using external signer by nostr:npub1w4uswmv6lu9yel005l3qgheysmr7tk9uvwluddznju3nuxalevvs2d0jr5

- Adds Lifecycle to all Flow collects in compose to stop processing new events when the app is paused.

- Avoids creation of the LiveData in every recomposition

- Removing Stop with Task from PushNotifications to make sure the PushService remains active.

- Updated translations to Sweden, Portuguese, Czech and German by nostr:npub1e2yuky03caw4ke3zy68lg0fz3r4gkt94hx4fjmlelacyljgyk79svn3eef

Download:

- [Play Edition](https://github.com/vitorpamplona/amethyst/releases/download/v0.80.1/amethyst-googleplay-universal-v0.80.1.apk )

- [FOSS Edition - No translations](https://github.com/vitorpamplona/amethyst/releases/download/v0.80.1/amethyst-fdroid-universal-v0.80.1.apk )

Reply to this note

Please Login to reply.

Discussion

Finally, notifications! Will have to see if my Gotify is any use here. Either way, this is super awesome. ^.^

Yes! I've been waiting for this!

Just stood up my own ntfy server for this. Been wanting notifications since forever!

Is there a way to test them? And what kind of notifications can I even receive now?

Configured a single user and made the default deny-all, all behind a Caddy reverse proxy with HTTPS. So technically I should be set.

Anything else?

Try to message or zap yourself. :)

Neither your zaps, nor my self-messages triggered a notification - and I was eyeballing the logs as well. I can see that the app has registered a topic, but not sent anything there, at all.

I'll grab a few screenshots real quick. :)

hum... Maybe nostr:npub1a3tx8wcrt789skl6gg7rqwj4wey0j53eesr4z6asd4h4jwrd62jq0wkq4k can help here.

Is this through the base ntfy service or with your own servers?

Our push server is taking the event from relays and sending it to your server. Do you have to white-list our servers? If so, it will call from https://amethyst-notif-server.herokuapp.com

Oh my god this might be it. I have set the default to deny-all because I thought everything came from Amethyst... I'll set it to write-only - don't need strangers to read my notifications :)

Theeeeere we go!

Is your experience worth a blog post on Habla? :) I think more people need to know they can put up their own notif servers.

Hm... I should consider that, yeah. o.o Has been a while since I last checked out several blogging clients. After I learned that YakiHonne was closed source, I kinda turned away from the idea of blogging a little miffed.

And, thanks. :)

https://void.cat/d/YT8cRKDw9ytiL6945acuRW.webp

Very likely you will have to allow write all for the Amethyst topic. I've set this up for my Synapse Home Server and that is the recommended approach for a locked down personal NTFY server. This guide is very helpful for a personal NTFY server:

https://docs.ntfy.sh/config/#access-control

Hello BitcoinLizard!

Wow

Apparently the disappearing post button issue is back according to some (Japanese) users...

تحديث #amethyst بإصدار

V0.80.1

" إشعارات الدفع للبرمجيات الحرة والمفتوحة المصدر "

و المميزات الجديدة لهذا التحديث الجديد :

-يضيف هذا الإصدار دعمًا لـ UnifiedPush إلى إصدار البرمجيات الحرة والمفتوحة المصدر من Amethyst. تأكد من تثبيت أحد تطبيقات [UnifiedPush] (https://unifiedpush.org/) لتلقي الإشعارات. بمجرد التثبيت، سيسألك Amethyst عن تطبيق التوزيع الذي سيتم استخدامه. إذا كان التطبيق مدفوعًا، فتأكد من وجود أرصدة كافية في هذا النظام.

- يضيف دعمًا للدفع الموحد في إصدار البرمجيات الحرة والمفتوحة المصدر

- إصلاح الأخطاء المتعلقة بإشعارات الدفع المفقودة عند استخدام إصدار Google

- إنشاء مخزن ViewModel لكل مستخدم، مما يسمح بتنظيف الذاكرة بشكل أسرع عند تبديل الحسابات.

- إصلاح العطل عند تحميل الصور/مقاطع الفيديو باستخدام مُوقع خارجي بواسطة

- إضافة دورة الحياة إلى كل عمليات التدفق المجمعة في الإنشاء لإيقاف معالجة الأحداث الجديدة عند إيقاف التطبيق مؤقتًا.

- يتجنب إنشاء LiveData في كل عملية إعادة تكوين

- إزالة التوقف مع المهمة من PushNotifications للتأكد من أن خدمة PushService تظل نشطة.

- ترجمات محدثة إلى السويد والبرتغالية والتشيكية والألمانية

و صدر التحديث في بعض المتاجر

#nostr

#amethyst

nostr:nevent1qqstpwqn5yfr9re2kzg4uxqkrjt59yz4csptn5v87m225m4tlduaz4spz9mhxue69uhkummnw3ezuamfdejj7q3qgcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqxpqqqqqqz34xtgg

Push notification for what? Being tagged, replies, recations or only direct messages? It is necessary for this to have sent the note from Amethyst?

The setup is also interesting: installed ntfy, switched in Amethyst to use ntfy for push notifications, but no topic in ntfy. Created a random topic in notify, switched back and forth in Amethyst and got a new topic in Ntfy. So maybe there needs to be at least one other topic in notify?

And how does this work at all? Any note sent to some relay would need to be reflected to a POST to that ntfy topic URL. Wo will doe this and why?

Just for DMs and Zaps over 10 sats. Same for the existing Google version of it.

ok, then I deinstall ntfy, because in my case it's just one additonal app draining power and consumin a place in the status bar.

Sure. If you are using Google, you don't need ntfy.

How do we set up notifications? I downloaded the other app but nothing has changed. nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z

Do you have a Notification Provider? Unified push requires you to choose a provider and install the app from that provider. You can see it here: https://unifiedpush.org/

A common Notification provider is Ntfy: https://ntfy.sh/

Check if Notifications are active for this app in the phone's settings.

I installed the option for the Google play download

If you are using Google, then this new version is not necessary for you. Notifications have always been there for Google users. Do you see a way to activate in the phone's Settings/Apps/Notification ?

The version released yesterday adds push notifications for users who are installing the FOSS version of the app via F-Droid or Obtainium. The play version doesn't need any of it.

Oh, okay. I thought there was a new set of notifications that you set up. I do currently get notifications. That's what happens when you keep upgrading. People start expecting wild stuff that they don't need. 😀

It's UP-FCM. See screenshot. Wrong one?

Followed #plebchain

This is outstanding! Thank you for adding this. I run GrapheneOS with no Google Play services. I install the X app via APK and without Google Play services there is no possible way to receive notifications (I'm fine with this actually). Now with Amethyst I am able to receive notifications. Amethyst is more of a 1st class citizen on my anti-Google phone than the X app! Great work!

Did it work? :)

It worked for a Zap with my own NTFY server! I found that it didn't work for a direct message.

If people have access control setup on their NTFY personal server they will need to run something like this to allow the notifications:

ntfy access '*' 'up***********' write-only

It worked for a Zap with my own NTFY server! I found that it didn't work for a direct message.

If people have access control setup on their NTFY personal server they will need to run something like this to allow the notifications:

ntfy access '*' 'up***********' write-only

Ah, i didn't get the IM from the test npub I setup so DM probably works. Someone please send me a test DM.

Looking forward to when this update hits F-Droid! I have my own unifies push server and I'm already using it for 2 app. I'll be happy to keep increasing that number!

Thanks now I'm in my Nextcloud reverse proxy trying to figure out the proper configuration. Self-hosting is a never-ending fine tuning hobby.

#amethyst delivering #ntfy push notifications

On a device running e.foundation #eOS (A11) with #microg

#degoogle much? #android

nostr:nevent1qqstpwqn5yfr9re2kzg4uxqkrjt59yz4csptn5v87m225m4tlduaz4spzamhxue69uhkzarvv9ejumn0wd68ytnvv9hxgtczyprqcf0xst760qet2tglytfay2e3wmvh9asdehpjztkceyh0s5r9cqcyqqqqqqge2a37p