[custom app] App Bridge transitions with redirect.dispatch not working

[custom app] App Bridge transitions with redirect.dispatch not working

hashi_ws
Tourist
5 1 0

Thank you for your help.

 

We are implementing screen transitions by redirect.dispatch in a custom app.

It has already been in operation for more than 2 years and has been working fine until now,

 

However, a user pointed out around 7/31 that redirect.dispatch was no longer working.

We are investigating the cause of the problem, but we have no idea what it is, so we are asking this question here.

 

The code in question

    handleRedirect = (url) => {
        let vm = this;
        const data = vm.props.sendData;
        const apiKey = data["apiKey"];
        const shopOrigin = data["shop"];
        const config = {
            apiKey: apiKey,
            shopOrigin: shopOrigin,
        };

        const app = createApp({
            apiKey: apiKey,
            shopOrigin: shopOrigin,
        });
        const redirect = Redirect.create(app);
        redirect.dispatch(Redirect.Action.APP, url);
    };

 

The version of App Bridge is 1.28.

Please let us know how we can fix the problem.

Replies 0 (0)