mollyim / mollysocket

MollySocket allows getting Signal notifications via UnifiedPush.
GNU Affero General Public License v3.0
106 stars 10 forks source link

How does mollysocket fit into the unified push architecture? #4

Closed ghost closed 11 months ago

ghost commented 1 year ago

https://unifiedpush.org/ defines 4 components: application server, push server, distributor app, phone application

image

The application server pushes notifications to the push server, which pushes those to the distributor app, which in turn wakes up the phone application to deliver the data (at least that's how I understand the flow).

Where does MollySocket come in? Is it a mandatory component?

It would be nice if this information were in the README.

p1gp1g commented 12 months ago

Mollysocket would fit into the application server : if signal server has supported a protocol compatible with UnifiedPush like Web Push, then it would be useless. Mollysocket is then a workaround, to extend the server capabilities to be compatible with UnifiedPush. I don't know if I'm clear enough :)

ghost commented 12 months ago

So, do I need a push server too? The CLI options don't seem to indicate a server to push to :thinking:

p1gp1g commented 12 months ago

Molly will save it for you. Mollysocket can be shared between users that doesn't use the same push server

ghost commented 11 months ago

I'm sorry, but I'm unable to get UnifiedPush to work and bug reports can't be created on https://github.com/mollyim/mollyim-android-unifiedpush . It isn't clear what is needed in order to make it work.

I setup mollysocket behind an nginx reverse proxy with HTTPS. Calling the domain returns {"mollysocket":{"version":"1.1.0"}}. After installing Molly and trying to activate UnifiedPush, it wasn't able to until I installed ntfy as the distributor app. Now, I just see this

endpoint

"MollySocket" is in the list of connected devices though.

Could you provide a list of things that are necessary in order to get this to work? Maybe adding them to the README would be good too. I can't be the only one running into this problem.

p1gp1g commented 11 months ago

I'm sorry, but I'm unable to get UnifiedPush to work and bug reports can't be created on https://github.com/mollyim/mollyim-android-unifiedpush

Thanks, I've fixed that

p1gp1g commented 11 months ago

Have you open ntfy once before doing this ? If not, open it, then go back to molly and disable/enable unifiedpush.

It should work then

ghost commented 11 months ago

I figured it out and opened a PR. Will test it and see how well everything works.

Thanks for your work on this! :pray: