Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use upstream-base-url config for Android app #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kruton
Copy link

@kruton kruton commented May 26, 2024

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 fixes binwiederhier/ntfy#358

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.
@kruton kruton force-pushed the android_poll_request branch from d1fc271 to eee093f Compare May 26, 2024 23:30
@kruton
Copy link
Author

kruton commented Nov 21, 2024

@binwiederhier any interest in merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android: Implement poll_request mode (similar to iOS)
1 participant