DEEPLINKX / app

Snapchat

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

DeeplinkX 1.5.8 · Source

Platforms and setup

Native platforms: ios, android, windows.

Public actions

Snapchat.open

factory Snapchat.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

Snapchat.openProfile

static SnapchatOpenProfileAction openProfile({ required final String username, 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
usernameStringYes—
fallbackToStoreboolNofalse

Exact source

Provider setup and examples

DeeplinkX supports opening Snapchat and Snapchat profile links on Android, iOS, and Windows.

References

Available Actions

Launch Snapchat

final deeplinkX = DeeplinkX();

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

Open a Profile

await deeplinkX.launchAction(
  Snapchat.openProfile(username: 'snapchat', fallbackToStore: true),
);

Platform Configuration

iOS

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

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>snapchat</string>
</array>

Android

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

<package android:name="com.snapchat.android" />
  • Open app: snapchat://
  • Profile: https://www.snapchat.com/add/{username}

Fallback Behavior

  1. DeeplinkX opens Snapchat when installed.
  2. If Snapchat 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 Snapchat on the web.
  4. Disable all fallbacks with disableFallback: true.

Fallback Support Matrix

ActionStore FallbackWeb Fallback
Open appYesYes
Open profileYesYes

Check If Snapchat Is Installed

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