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.
| Parameter | Type | Required | Default |
|---|---|---|---|
fallbackToStore | bool | No | false |
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.
| Parameter | Type | Required | Default |
|---|---|---|---|
username | String | Yes | — |
fallbackToStore | bool | No | false |
Provider setup and examples
DeeplinkX supports opening Snapchat and Snapchat profile links on Android, iOS, and Windows.
References
- Snapchat public profile links: https://help.snapchat.com/hc/en-us/articles/7012277563540-How-do-I-make-a-Snapcode-to-share-my-Public-Profile-on-Snapchat
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" />
Link Formats
- Open app:
snapchat:// - Profile:
https://www.snapchat.com/add/{username}
Fallback Behavior
- DeeplinkX opens Snapchat when installed.
- If Snapchat 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 Snapchat on the web.
- Disable all fallbacks with
disableFallback: true.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | Yes | Yes |
| Open profile | Yes | Yes |
Check If Snapchat Is Installed
final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(Snapchat());