You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iOS应用中合法打开AliExpress App的合规方案咨询

如何在自有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:
    guard let aliexpressLink = URL(string: "https://www.aliexpress.com/") else { return }
    UIApplication.shared.open(aliexpressLink)
    
    If you want to deep-link to a specific product, use the product’s official URL (like https://www.aliexpress.com/item/123456789.html)—this will jump directly to that product page in the AliExpress app if installed.

To make sure you’re using a working link:

  1. Open Safari on an iOS device that has the AliExpress app installed.
  2. Paste the URL you want to use (e.g., https://www.aliexpress.com/).
  3. 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.

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 09:04:50