简体   繁体   中英

Deep link into eBay iOS app with custom URL scheme?

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.

This works for me using the eBay custom URL scheme:

let eBayURL:NSURL?=NSURL(string: "ebay://launch?itm=301858203427")
UIApplication.sharedApplication().openURL(eBayURL!)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM