This page was printed on Aug 24, 2019. For the current version, visit https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/share.
These actions require the following app versions:
Shopify iOS v8.22.0 or above
Shopify Android v8.25.0 or above
Point of Sale iOS v5.29.0 or above
Point of Sale Android v3.24.0 or above
Create an app and import the Share module from @shopify/app-bridge/actions. Note that we'll be referring to this sample application throughout the examples below.
Share Close action
Dispatches after closing the Share Sheet.
The Share action lets you share content from your app to any third-party app on the user's device, as long as the app supports the payload type. Some apps only support text and some support URLs and text.
Subscribe to Share Close:
Whether the share was successful or canceled.
Share Open action
Opens a Share Sheet that allows you to share content with other apps.