Skip to content

No way to use client router in new app bridge api #543

@themrcatsu

Description

@themrcatsu

Describe the bug

New app bridge api, have missing documentation or internal bug. There is no way to use custom client router

So in API replacements we have 2 members:

  1. app.subscribe
  2. Redirect.Action.PUSH

In old version we can do like that:

Image

New version says that there is replacement for both, but they are missing.

  1. app.subscribe() - no API for client routers, i have found hidden subscribe in shopify.protocol (see above)
  2. Redirect.Action.APP - shopify.navigation.navigate() method just missing from shopify instance.
Image

With this method it actually triggered, but twice. While old bridge prevented shopify from iframe reload, this method using my navigate, AND reloads iframe

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions