iOS应用中合法打开AliExpress App的合规方案咨询
Hey there, let’s walk through the proper, guideline-compliant way to launch the AliExpress app from your iOS app—following both Apple and Alibaba’s rules.
First, let’s address the aliexpress:// scheme issue: it’s not uncommon for app schemes to stop working reliably over time. Many apps (including AliExpress) have shifted to Universal Links as Apple’s preferred method for inter-app navigation. Universal Links are more secure, avoid sketchy "open in app" prompts, and are officially supported by both Apple and AliExpress.
Here’s how to implement it:
- Use AliExpress’s official Universal Links: These are standard HTTPS URLs that AliExpress has registered with Apple. When you open one of these links from your app, iOS will automatically launch the AliExpress app if it’s installed on the user’s device. If not, it’ll gracefully fall back to AliExpress’s mobile website.
- Implement the open call in your code: Use Apple’s
UIApplication.shared.open(_:options:completionHandler:)method to trigger the link. For example:
If you want to deep-link to a specific product, use the product’s official URL (likeguard let aliexpressLink = URL(string: "https://www.aliexpress.com/") else { return } UIApplication.shared.open(aliexpressLink)https://www.aliexpress.com/item/123456789.html)—this will jump directly to that product page in the AliExpress app if installed.
How to verify a valid Universal Link:
To make sure you’re using a working link:
- Open Safari on an iOS device that has the AliExpress app installed.
- Paste the URL you want to use (e.g.,
https://www.aliexpress.com/). - If you see a banner at the top of Safari that says "Open in AliExpress", that confirms it’s a valid Universal Link. Tapping that banner will launch the app, so you know your code will work.
Handling cases where AliExpress isn’t installed:
If the user doesn’t have AliExpress installed, the Universal Link will default to the mobile website. If you’d rather send them straight to the App Store, you can add a check using canOpenURL(_:), but note this requires adding aliexpress to your app’s LSApplicationQueriesSchemes in Info.plist. Here’s an example:
let aliexpressUniversalLink = URL(string: "https://www.aliexpress.com/")! let aliexpressScheme = URL(string: "aliexpress://")! let appStoreURL = URL(string: "https://apps.apple.com/us/app/aliexpress-shopping-online/id399285495")! if UIApplication.shared.canOpenURL(aliexpressScheme) { UIApplication.shared.open(aliexpressUniversalLink) } else { UIApplication.shared.open(appStoreURL) }
Keep in mind that canOpenURL might not always be 100% reliable (due to iOS privacy restrictions), so relying primarily on Universal Links is the safest long-term approach.
Why old link solutions stopped working:
The temporary link fixes you mentioned likely broke because AliExpress updated their linking infrastructure—they may have deprecated old custom schemes or unregistered non-standard links. Universal Links are the most stable option because they’re aligned with Apple’s official guidelines and maintained by AliExpress to stay compliant.
内容的提问来源于stack exchange,提问作者Dmitriy Ivashin

