Help with Shared web credentials

Highlighted
New Member
1 0 0

I run a new shopify store and need to add a small 4 line file that will allow for shared web credentials with my native iOS app. On my previous wordpress store I was able to just drop the file in the domain storage and it worked. Because shopify uses a CDN the file does not actually sit in my domain and won't verify.   

 

Any help would be appreciated as to how to get this tiny file added using the shopify API?

https://developers.shopify.com/changelog/shopify-supports-shared-web-credentials-on-ios

 

Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
51 10 5

Hi there, 

 

Here are a few guides that might be useful for you: 

https://developer.apple.com/documentation/security/password_autofill/setting_up_an_app_s_associated_...

https://help.shopify.com/en/api/reference/mobileplatformapplication

 

You should be able to make a POST request to /admin/api/2019-10/mobile_platform_applications.json  with the appropriate signature and credentials in order to enable shared web credentials for your application

 

Cheers

0 Likes
Highlighted
Tourist
8 0 3

What permission is required to access that /mobile_platform_applications.json endpoint? When I make such a request, like this, it simply gives a 404 error response with {"errors""Not Found"}.

 

You guys may want to add the necessary permissions to your documentation, especially since there's zero mention of this API in the API key page either, so it's literally up to users to guess.

 

Example: 

curl --location --request POST 'https://MY-STORE.myshopify.com/admin/api/2020-04/mobile_platform_applications.json' \
--header 'Authorization: Basic REDACTEDREDACTEDREDACTEDREDACTEDREDACTEDREDACTEDREDACTED' \
--header 'Content-Type: application/json' \
--data-raw '{
  "mobile_platform_application": {
    "platform": "ios",
    "application_id": "test.testing.test",
    "enabled_universal_or_app_links": true,
    "enabled_shared_webcredentials": true
  }
}'
 
0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hi @DGP ,

 

In order to have the read/write access scopes necessary to use the "mobile_platform_applications" endpoint, you need to contact Shopify Partner Support and ask if they can grant these access scopes for your app. 

 

You can reach out to Partner Support from your Shopify Partner Dashboard and then selecting "Support" from the menu on the left. 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes