Download a base64 pdf file thru AppBridge

Shopify Partner
56 0 2



I display a base64 pdf in our embedded app. This works nicely in embedded mode and in standalone mode.


Now I have a Polaris Button that has the following props:

<Button download={fileName} url={`data&colon;application/pdf;base64,${pdfBase64}`} external={true}>
The download thru the standalone app works nicely, but when the app is embedded in shopify it does not work.
I tried with external and internal links, nothing worked.

How can I trigger the download thru the App Bridge.
To got thru an external http/https url does not make sense in this case, since the full data is already present in the clients browser as base64.

Any idea on how this could be done?