Open Amazon link with Amazon App not Safari - IOS Swift 3

柔情痞子 提交于 2019-12-06 04:14:42

问题


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!


回答1:


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.




回答2:


@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/


来源:https://stackoverflow.com/questions/43000359/open-amazon-link-with-amazon-app-not-safari-ios-swift-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!