Post AdBi7PcYXhdQMqhk4e by karmanyaahm@social.linux.pizza
 (DIR) More posts by karmanyaahm@social.linux.pizza
 (DIR) Post #AdBfhwfeqCpJQtsrpI by dmakovec@theblower.au
       2023-12-26T01:53:31Z
       
       0 likes, 0 repeats
       
       Can anybody point me to the documentation explaining how @Tusky  works with @unifiedpush via #ntfy ? I'm having difficulty groking the zero-configuration magic, and how I could get it to work with a self-hosted @ntfy server
       
 (DIR) Post #AdBfhxmmhC7atIE4Zc by karmanyaahm@social.linux.pizza
       2023-12-26T02:23:49Z
       
       0 likes, 0 repeats
       
       You need to host your ntfy server using the ntfy docs, then configure it in ntfy android settings like normal. Then, when you restart Tusky, it should automatically detect ntfy and start using it! You will see a line in ntfy that says Tusky@dmakovec @Tusky @unifiedpush @ntfy
       
 (DIR) Post #AdBh3WKZYN0w47sCP2 by dmakovec@theblower.au
       2023-12-26T02:38:56Z
       
       0 likes, 0 repeats
       
       @karmanyaahm @Tusky @unifiedpush @ntfy thanks, that covers the "what", I'm curious about the "how" though:- How did Tusky magically become aware of ntfy when I installed it? Does it periodically poll a certain local port on the phone, or attempt an API call, and the first time it succeeded it registered a random topic?- Where are the messages coming from - i.e. how does my Mastodon host know to PUT to my local server, so that it can then publish to the topic that Tusky has subscribed to?
       
 (DIR) Post #AdBi7PcYXhdQMqhk4e by karmanyaahm@social.linux.pizza
       2023-12-26T02:50:52Z
       
       0 likes, 0 repeats
       
       @dmakovec ntfy exposes an Android receiver called "org.unifiedpush.android.distributor.REGISTER". That lets other Android apps like Tusky discover it as a UP distributor and communicate with it.Then, in response to that register message, ntfy gives a URL on your server back to Tusky. Tusky sends that to the Mastodon server, which starts sending push messages to that URL.Here's some more info: https://f-droid.org/en/2022/12/18/unifiedpush.html https://unifiedpush.org/spec/android/
       
 (DIR) Post #AdBnwbjxk3gMUkOrgW by dmakovec@theblower.au
       2023-12-26T03:56:08Z
       
       0 likes, 0 repeats
       
       @karmanyaahm that's an excellent ELI5. Thankyou, sir. Much appreciated!