Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

amazon

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!

like image 601
Mike Me Avatar asked Mar 24 '17 13:03

Mike Me


1 Answers

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.

like image 89
DonMag Avatar answered Oct 13 '22 23:10

DonMag