Skip to content

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
@rajveermalviya rajveermalviya added this to the M6: Post-launch milestone May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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