mobilePlatformApplication
Requires access scope. Please contact Shopify Support to enable this scope for your app.
Return a mobile platform application by its ID.
Anchor to Possible returnsPossible returns
- Anchor to MobilePlatformApplicationMobile•
Platform Application You can use the
resource to enable shared web credentials for Shopify iOS apps, as well as to create iOS universal link or Android app link verification endpoints for merchant Shopify iOS or Android apps. Shared web credentials let iOS users access a native app after logging into the respective website in Safari without re-entering their username and password. If a user changes their credentials in the app, then those changes are reflected in Safari. You must use a custom domain to integrate shared web credentials with Shopify. With each platform's link system, users can tap a link to a shop's website and get seamlessly redirected to a merchant's installed app without going through a browser or manually selecting an app.
For full configuration instructions on iOS shared web credentials, see the associated domains setup technical documentation.
For full configuration instructions on iOS universal links or Android App Links, see the respective iOS universal link or Android app link technical documentation.
Get a mobile platform application.
query MobilePlatformApplicationQuery {
mobilePlatformApplication(id: "gid://shopify/MobilePlatformApplication/1066176000") {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
__typename
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query MobilePlatformApplicationQuery { mobilePlatformApplication(id: \"gid://shopify/MobilePlatformApplication/1066176000\") { ... on AndroidApplication { id applicationId sha256CertFingerprints appLinksEnabled __typename } ... on AppleApplication { id appId universalLinksEnabled appClipApplicationId appClipsEnabled __typename } } }"
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query MobilePlatformApplicationQuery {
mobilePlatformApplication(id: "gid://shopify/MobilePlatformApplication/1066176000") {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
__typename
}
}
}`,
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: `query MobilePlatformApplicationQuery {
mobilePlatformApplication(id: "gid://shopify/MobilePlatformApplication/1066176000") {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
__typename
}
}
}`,
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
query MobilePlatformApplicationQuery {
mobilePlatformApplication(id: "gid://shopify/MobilePlatformApplication/1066176000") {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
__typename
}
}
}
QUERY
response = client.query(query: query)