DEEPLINKX / app

Temu

Temu actions, setup, native platforms, and fallback options.

DeeplinkX 1.5.8 · Source

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.

ParameterTypeRequiredDefault
fallbackToStoreboolNofalse

Exact source

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.

ParameterTypeRequiredDefault
linkUriYes—
fallbackToStoreboolNofalse

Exact source

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.

ParameterTypeRequiredDefault
queryStringYes—
fallbackToStoreboolNofalse

Exact source

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);
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" />
  • 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

  1. DeeplinkX opens Temu when installed.
  2. If Temu is not installed and fallbackToStore is true, DeeplinkX redirects to Google Play or the iOS App Store.
  3. If store fallback is disabled or unavailable, DeeplinkX opens Temu on the web.
  4. Disable all fallbacks with disableFallback: true.

Fallback Support Matrix

ActionStore FallbackWeb Fallback
Open appYesYes
Open linkYesYes
SearchYesYes

Check If Temu Is Installed

final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(Temu());