Open Amazon link with Amazon App not Safari - IOS

2019-04-09 13:45发布

I have an Amazon affiliate link (to a product) in the app I am developing (Swift 3).

Is there a possibility to let the user open the link with the Amazon App or let the user choose to open with Safari or Amazon App in case he doesn't have the Amazon App?

At this moment the link is always opened with Safari

Thank you!

标签: ios amazon
2条回答
看我几分像从前
2楼-- · 2019-04-09 14:23

@DonMag solution seem to be outdated but was of big help !!

Here is the updated one :

com.amazon.mobile.shopping://www.amazon.com/products/B00KWFCV32/
查看更多
霸刀☆藐视天下
3楼-- · 2019-04-09 14:27

You can try this:

com.amazon.mobile.shopping://www.amazon.com/gp/product/product-id

or

com.amazon.mobile.shopping.web://www.amazon.com/gp/product/product-id

If that doesn't work, search the web for Amazon app url scheme - you might find something more current.

查看更多
登录 后发表回答