App reviews, troubleshooting, and recommendations
We are getting a lot of "APP::ERROR::PERMISSION" from AppBridge.
Here's an example of an error:
{ "action": { "group": "WebVitals", "type": "APP::WEB_VITALS::TIME_TO_FIRST_BYTE", "payload": { "id": "v3-1666610876519-6214010517636", "metricName": "TTFB", "value": 840 }, "version": "3.4.2", "clientInterface": { "name": "@shopify/app-bridge-react", "version": "3.3.2" } }, "message": "Action is not permitted", "type": "APP::ERROR::PERMISSION", "id": "v3-1666610876519-6214010517636" }
It seems that this errors only happens on iOS devices - it looks like the Shopify mobile app webview. Below is an UserAgent example:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Unframed Frameless Shopify Mobile/iOS/9.86.1 (iPhone13,4/com.jadedpixel.shopify/16.0.2) - Build 850
Any idea what we're doing wrong? Is it something on our side?
Solved! Go to the solution
This is an accepted solution.
Thanks, however this wasn't the issue. After upgrading to the latest app-bridge version the error is gone. Seems like a small bug in the app-bridge library.
Hey Adrian,
This error is generally seen when you ask for a collaborator request and don't ask for the permissions for products in it.
Now, if your app makes any API/GraphQL call to fetch Shopify Products, you will see this error.
So make sure you ask for access to products as well.
So this answer would help you.
This is an accepted solution.
Thanks, however this wasn't the issue. After upgrading to the latest app-bridge version the error is gone. Seems like a small bug in the app-bridge library.
To summarize:
- When connecting as the admin / a staff member, the connected user needs to have the relevant access scopes (read_products) to be able to access products using the App Bridge
- However (and surprisingly), when connecting as a collaborator, the App Bridge additionally requires that the collaborator access permissions include access to the Products section as mentioned by @fodane above
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023