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.
| Parameter | Type | Required | Default |
|---|---|---|---|
fallbackToStore | bool | No | false |
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.
| Parameter | Type | Required | Default |
|---|---|---|---|
titleId | String | Yes | — |
fallbackToStore | bool | No | false |
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.
| Parameter | Type | Required | Default |
|---|---|---|---|
titleId | String | Yes | — |
fallbackToStore | bool | No | false |
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" />
Link Formats
- 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}orhttps://www.netflix.com/watch/{titleId}
Fallback Behavior
- DeeplinkX opens Netflix when installed.
- If Netflix is not installed and
fallbackToStoreistrue, DeeplinkX redirects to Google Play, the iOS App Store, or the Microsoft Store. - If store fallback is disabled or unavailable, DeeplinkX opens Netflix on the web.
- Disable all fallbacks with
disableFallback: true.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | Yes | Yes |
| Open title | Yes | Yes |
| Watch title | Yes | Yes |
Check If Netflix Is Installed
final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(Netflix());