You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: deep link race condition — fires before providers initialized on cold start #4763
In app/lib/core/app_shell.dart, initDeepLinks() runs in initState() (line 294) but provider initialization runs in addPostFrameCallback (line 296 — later in the lifecycle):
@overridevoidinitState() {
initDeepLinks(); // ← deep link listener starts HEREWidgetsBinding.instance.addPostFrameCallback((_) async {
// ← providers initialized HERE (later)
context.read<AppProvider>().setAppsFromCache();
context.read<MessageProvider>().refreshMessages();
// ...
});
super.initState();
}
PR #4737 adds getInitialLink() inside initDeepLinks() which processes the launch URI immediately — before addPostFrameCallback fires. This means:
context.read<AppProvider>().getAppFromId(id) returns null for valid app IDs (cache not loaded yet)
User sees "App not available" error on a valid deep link
Or worse: if a provider hasn't been registered in the ancestor tree yet, context.read<T>() throws
This affects ALL deep link routes on cold start (app launched by a link), not just /tasks.
Reproduction
Force-kill the Omi app
Open h.omi.me/apps/{valid-app-id} from another app or browser
Activity
Fix Android deep links broken across all notification types (#4799)
fix(app): wait for navigator before FCM cold-start navigate (BasedHar…
fix(app): navigate from FCM background/terminated notification taps (#…