Page MenuHomePhabricator

Use initial notifications from queue rather than from launch options
ClosedPublic

Authored by marcin on Mar 13 2023, 3:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 8, 1:34 AM
Unknown Object (File)
Thu, Mar 7, 8:58 PM
Unknown Object (File)
Thu, Mar 7, 8:58 PM
Unknown Object (File)
Thu, Mar 7, 6:25 PM
Unknown Object (File)
Tue, Mar 5, 11:31 PM
Unknown Object (File)
Feb 23 2024, 8:44 AM
Unknown Object (File)
Feb 23 2024, 7:46 AM
Unknown Object (File)
Feb 23 2024, 6:05 AM
Subscribers

Details

Summary

This differential is a fix for the iOS part of this issue: https://linear.app/comm/issue/ENG-3269/app-erroneously-opens-to-chats-at-random-times. Initially when app was entering the foreground in respone to tapping the notif we were querying
initial launch options for notification that launched the app (no the one that was tapped, but the one that booted the app). In case there was any we would navigate user to the thread corresponding to this notification. This resulted in erroneous navigation since the thread correpsonding to
the lastest notif that foregrounded (not booted!) the app might had been different.

Test Plan

Build the app and check that tapping notification always navigates us to the correct thread.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-3269
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Looks good! Thanks for linking to the Linear issue and jotting down detailed notes there.

This revision is now accepted and ready to land.Mar 13 2023, 5:03 PM

Why hasn't this been landed? It's an urgent issue and the diff was accepted on Monday...

Why hasn't this been landed? It's an urgent issue and the diff was accepted on Monday...

I will make sure to land differentials of this kind more efficiently in future.