Platforms and setup
Native platforms: ios, android.
Public actions
Temu.open
factory Temu.open({final bool fallbackToStore = false})
Launch with DeeplinkX.launchApp. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
fallbackToStore | bool | No | false |
Temu.openLink
static TemuOpenLinkAction openLink({ required final Uri link, final bool fallbackToStore = false, })
Launch with DeeplinkX.launchAction. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
link | Uri | Yes | — |
fallbackToStore | bool | No | false |
Temu.search
static TemuSearchAction search({ required final String query, final bool fallbackToStore = false, })
Launch with DeeplinkX.launchAction. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
query | String | Yes | — |
fallbackToStore | bool | No | false |
Provider setup and examples
DeeplinkX supports opening Temu, Temu links, and Temu searches on Android and iOS.
Available Actions
Launch Temu
final deeplinkX = DeeplinkX();
await deeplinkX.launchApp(Temu.open());
await deeplinkX.launchApp(Temu.open(fallbackToStore: true));
await deeplinkX.launchApp(Temu.open(), disableFallback: true);
Open a Temu Link
await deeplinkX.launchAction(
Temu.openLink(
link: Uri.parse('https://www.temu.com/search_result.html?search_key=shoes'),
fallbackToStore: true,
),
);
Search Temu
await deeplinkX.launchAction(
Temu.search(query: 'running shoes', fallbackToStore: true),
);
Platform Configuration
iOS
Add the Temu scheme to ios/Runner/Info.plist:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>temu</string>
</array>
Android
Add the Temu package to <queries> in android/app/src/main/AndroidManifest.xml:
<package android:name="com.einnovation.temu" />
Link Formats
- Open app:
temu:// - Search:
https://www.temu.com/search_result.html?search_key={query} - Product, affiliate, and share links: pass the Temu URL to
Temu.openLink(...)
Fallback Behavior
- DeeplinkX opens Temu when installed.
- If Temu is not installed and
fallbackToStoreistrue, DeeplinkX redirects to Google Play or the iOS App Store. - If store fallback is disabled or unavailable, DeeplinkX opens Temu on the web.
- Disable all fallbacks with
disableFallback: true.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | Yes | Yes |
| Open link | Yes | Yes |
| Search | Yes | Yes |
Check If Temu Is Installed
final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(Temu());