Closed ascherkus closed 1 year ago
Hey,
I just wanted to say, I'm also running into this issue with an app in production. also debugged the issue locally, and came to the same conclusion around getSessionToken never resolving or rejecting. I have tried using a lower version of the package but still getting the issue.
Any known workaround would be helpful as currently our app does not load.
Hey @henrytao-me, any update on this,
While debugging locally, it seems no actions get dispatched when I, for example, clicked a button to show a Toast, initializing app bridge did not throw any errors, but the action did not show up when debugging via the Console app on mac (If I remember correctly they did in the past, and others triggered by POS app do)
Hi @ascherkus and @PaulLiamAG, I was able to reproduce the issue only once but I know which code could cause the issue. I will push a fix soon. Thanks for reporting the issue ๐
@ascherkus: can you confirm which Shopify app having this issue? Is this Shopify Mobile or Shopify POS?
@ascherkus Can you share your appId (or apiClientId) that I can test the fix? We can chat in partners slack if you don't want to share the id here. ๐
Confirmed: the fix should be available in Shopify Mobile 9.100.0 which will be released next week ๐. I close this for now. Feel free to reopen if needed.
Describe the bug
After our app is gets loaded when redirecting to the app URL (e.g., a 302 to https://foo.myshopify.com/admin/apps/my-app after, say, handling the approve charge callback), App Bridge initializes but calling getSessionToken() hangs.
The promise never completes nor is rejected. As far as I can tell, there are no exceptions, errors, or logs emitted.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
App Bridge loads and getSessionToken() completes as expected.
Contextual information
We see the following:
Packages and versions
List the relevant packages youโre using, and their versions. For example:
@shopify/app-bridge
@3.4.3
@shopify/polaris
@10.0.0
Platform