No content to show
User Activity
@d_tehrani It looks to me like the following is happening:
1. You call `shopify extension serve`
2. You click on the tunnel url and get redirected to your development shop
3. You open your extension and see the error
Can you confirm? If the error is ...
Hi Josh,
This is working as intended, once the picker is created you can only update its options but not its resource type. If you want both a Product Picker and a Collection Picker, you need to create 2 different instances and just set the open prop...
11-30-2020
Hi Mashabow,
The redirect is happening inside your app so App Bridge is not notified and is not able to block it. You have 2 options:
A) Instead of passing the url as in `href`, you can add an `onClick` handler to the Link and dispatch an App Bridge ...
11-14-2020
Hi Aljazari,
You can use an npm CDN to include App Bridge as a script tag:
<script src="https://unpkg.com/@shopify/app-bridge"></script>
<script>
var AppBridge = window['app-bridge'];
var actions = window['app-bridge'].actions;
</script>
See the...
Hi buddywa,
Note that if you need to perform oauth on your app, opening an iframe modal won't work. What you could do is perform a remote redirect to your sign in page and then redirect back to the embedded app.
Hi buddywa,
If the sign in page is hosted on the same domain as your app, you could try opening an iframe modal instead. Once the user clicks the sign in button from the modal, you could send a message to your main app to notify the app that the sign...
Hi barisozdogan,
You should be able to use Redux without any affect on App Bridge. Although App Bridge stores its state in a Redux store, this is handled in Shopify Admin.
Which Provider should cover other -> app-bridge-react Provider or react-red...
08-13-2020
Hi Tommy,Our docs on the help site is out of date unfortunately. If you open a "Product" Resource Picker and wanted to preselect a variant, you need to select the product and then set the selected variant id inside `variants`. Something like this sho...
08-12-2020
Hi there,The docs for the new auth can be found here: https://shopify.dev/tools/app-bridge/authentication.There's an example of using the `authenticatedFetch` helper here: https://shopify.dev/tools/app-bridge/authentication#frontend-changes
07-12-2020
Have you tried setting `forceRedirect: true`? This will allow App Bridge to automatically redirect your app back to be embedded inside Shopify Admin.
06-19-2020
Oops, my mistake - glad you got that sorted out. I'll bring your feedback back to the team and hopefully we can improve the docs soon.
06-19-2020
Ok, I see the issue, when you dispatch an action through the context it should be an object, not a string. App Bridge exports a close action you can use:appBridge.dispatch(ModalActions.close());
06-19-2020
What do you get if you log out the App Bridge context?const appBridge = useContext(Context);console.log(appBridge);
06-19-2020
Hi Bill,Can you paste your full code snippet? The type error seems indicate that you're importing the modal actions from `@shopify/app-bridge-react`, which is not the correct package. I know it's confusing but `@shopify/app-bridge-react` does export ...
06-16-2020
Yes, this is from the docs: https://polaris.shopify.com/components/structure/app-provider#section-access-to-the-shopify-app-bridge-instance-deprecated The caveat is that using App Bridge through Polaris is deprecated and is not kept up to date. If yo...
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
2098 | 11-30-2020 08:16 PM | |
2084 | 11-03-2020 10:33 AM | |
2800 | 10-22-2020 11:35 AM | |
5781 | 08-13-2020 11:51 AM | |
3804 | 06-19-2020 04:38 PM |