Skip to content
New issue

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

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

Already on GitHub? # to your account

notif android: Migrate to cross-platform Pigeon API for navigation #1447

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

rajveermalviya
Copy link
Member

Split from #1379.

Migrates the Android notification routing implementation from URL-encoded payloads to instead implement and use the same Pigeon API that iOS uses in #1379.

Moves the actual loading of GlobalStore from GlobalStoreWidget
to _ZulipAppState.initState.

This will allow to do some other tasks concurrently while
the GlobalStore is loading and showing the placeholder while
they complete.
…art`

This makes it clear that these bindings are for Android only.
Introduces a new Pigeon API file, and adds the corresponding
bindings in Swift. Unlike the `pigeon/android_notifications.dart`
API this doesn't use the ZulipPlugin hack, as that is
only needed when we want the Pigeon functions to be available
inside a background isolate (see doc in `zulip_plugin/pubspec.yaml`).

Since the notification tap will trigger an app launch first
(if not running already) anyway, we can be sure that these new
functions won't be running on a Dart background isolate, thus not
needing the ZulipPlugin hack.
@rajveermalviya rajveermalviya force-pushed the pr-migrate-android-notif branch from 1ad7dd8 to 54fb403 Compare March 31, 2025 07:34
@rajveermalviya rajveermalviya added the maintainer review PR ready for review by Zulip maintainers label Apr 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants