Skip to content

iOS: tapping an Omi answer notification no longer opens the chat #22285

Closed

Description

@apoorvdarshan

Product impact

  • Primary loop layer: UX-Polish (notifications)
  • Involves data loss, failed capture, or broken sync/trust

Describe the bug

On iPhone, tapping the "omi says …" notification for an answer from Omi opens the app but not the chat. The app stays on whatever screen it was on (Home after a cold start), so the answer is not shown. This is the deep link that #5126 fixed. It stopped working on iOS when push taps started going through NotificationUtil.routeFromFcmData (618efee, merged in #18858). Android still opens the chat.

To Reproduce

  1. On an iPhone, put Omi in the background or close it.
  2. Ask Omi a question with the device button or click-to-talk, so the answer arrives as an "omi says …" notification.
  3. Tap the notification.

Current behavior

The app comes to the front on its previous screen (or Home after a cold start). The chat with the answer does not open.

Expected behavior

Tapping the notification opens the Omi chat (/chat/omi), as it did after #5126 and as it still does on Android.

Evidence (upstream main at f26307c7e1301ccd8a86c8b66631572d81ee0874)

In code: NotificationUtil.routeFromFcmData({'push_type': 'chat_answer', 'notification_type': 'plugin', 'navigate_to': '/chat/omi'}) returns null.

I have a fix with regression tests and will open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions