Deep link into eBay iOS app with custom URL scheme

2019-07-11 18:23发布

In my app, I’d like a way to open the eBay application on a customer’s iOS device (if they have that app installed), and perform a search with a term I specify.

I’ve noticed that opening an eBay:// URL does indeed open the app, but I can’t find any API documentation on eBay’s developer portal discussing what I’d like to do.

Has anyone done this? Any idea what the rest of the URL would need to be in order to simply perform a search in the app with a given term, and perhaps some specified search parameters such as category or country?

I’ve tried ebay://www.ebay.com/sch/i.html?_nkw=test, it launches the app but does not perform any search.

2条回答
贼婆χ
2楼-- · 2019-07-11 19:01

This works for me using the eBay custom URL scheme:

let eBayURL:NSURL?=NSURL(string: "ebay://launch?itm=301858203427")
UIApplication.sharedApplication().openURL(eBayURL!)
查看更多
聊天终结者
3楼-- · 2019-07-11 19:20

I see you probably found this link, which from your experience seems deprecated by the latest eBay mobile app for iOS release

Wikipedia page on mobile app deep linking

I wrote directly to the dev team, they maintain a public facing discussion forum here:

eBay iOS App Discussion Forum

They confirmed that examples in the wiki link above are still supported. I tested and verified it as working myself today. It's working fine at the time of this answer. Note all you can do on iOS is land on a particular items page, or launch a search within the app. An example of searching for a particular eBay item ID would be: eBay://launch?itm=360703170135 for iOS.

查看更多
登录 后发表回答