DEEPLINKX / app

Netflix

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

DeeplinkX 1.5.8 · Source

Platforms and setup

Native platforms: ios, android, windows.

Public actions

Netflix.open

factory Netflix.open({final bool fallbackToStore = false})

Launch with DeeplinkX.launchApp. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
fallbackToStoreboolNofalse

Exact source

Netflix.openTitle

static NetflixOpenTitleAction openTitle({ required final String titleId, final bool fallbackToStore = false, })

Launch with DeeplinkX.launchAction. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
titleIdStringYes—
fallbackToStoreboolNofalse

Exact source

Netflix.watchTitle

static NetflixWatchTitleAction watchTitle({ required final String titleId, final bool fallbackToStore = false, })

Launch with DeeplinkX.launchAction. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
titleIdStringYes—
fallbackToStoreboolNofalse

Exact source

Provider setup and examples

DeeplinkX supports opening Netflix, Netflix title pages, and playback links on Android, iOS, and Windows.

Available Actions

Launch Netflix

final deeplinkX = DeeplinkX();

await deeplinkX.launchApp(Netflix.open());
await deeplinkX.launchApp(Netflix.open(fallbackToStore: true));
await deeplinkX.launchApp(Netflix.open(), disableFallback: true);

Open a Title Page

await deeplinkX.launchAction(
  Netflix.openTitle(titleId: '81215567', fallbackToStore: true),
);

Watch a Title

await deeplinkX.launchAction(
  Netflix.watchTitle(titleId: '81215567', fallbackToStore: true),
);

Platform Configuration

iOS

Add the Netflix scheme to ios/Runner/Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>nflx</string>
</array>

Android

Add the Netflix package to <queries> in android/app/src/main/AndroidManifest.xml:

<package android:name="com.netflix.mediaclient" />
  • Open app: nflx://
  • Title page: nflx://www.netflix.com/title/{titleId}
  • Watch title: nflx://www.netflix.com/watch/{titleId}
  • Web fallback: https://www.netflix.com/title/{titleId} or https://www.netflix.com/watch/{titleId}

Fallback Behavior

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

Fallback Support Matrix

ActionStore FallbackWeb Fallback
Open appYesYes
Open titleYesYes
Watch titleYesYes

Check If Netflix Is Installed

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