This mirrors the logic used for instant notifications in the iOS app:
When a user subscribes to a topic, the app will subscribe to Firebase using sha256(baseUrl + topic).
When a "poll_request" call is received from Firebase, the app will look up the sha256(baseUrl + topic) of all subscriptions in the database and see if the poll_request topic matches that. If it does, it will poll the original server using the stored baseUrl from the subscriptions database.
This mirrors the logic used for instant notifications in the iOS app:
When a user subscribes to a topic, the app will subscribe to Firebase using
sha256(baseUrl + topic)
.When a "poll_request" call is received from Firebase, the app will look up the
sha256(baseUrl + topic)
of all subscriptions in the database and see if thepoll_request
topic matches that. If it does, it will poll the original server using the stored baseUrl from the subscriptions database.This fixes binwiederhier/ntfy#358