Platforms and setup
Native platforms: ios, android, windows.
Public actions
ChatGPT.open
factory ChatGPT.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 |
ChatGPT.openSharedConversation
static ChatGPTOpenSharedConversationAction openSharedConversation({ required final String shareId, 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 |
|---|---|---|---|
shareId | String | Yes | — |
fallbackToStore | bool | No | false |
ChatGPT.openGpt
static ChatGPTOpenGptAction openGpt({ required final String gptId, 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 |
|---|---|---|---|
gptId | String | Yes | — |
fallbackToStore | bool | No | false |
Provider setup and examples
DeeplinkX supports opening ChatGPT and stable ChatGPT web links on Android, iOS, and Windows.
Available Actions
Launch ChatGPT
final deeplinkX = DeeplinkX();
await deeplinkX.launchApp(ChatGPT.open());
await deeplinkX.launchApp(ChatGPT.open(fallbackToStore: true));
await deeplinkX.launchApp(ChatGPT.open(), disableFallback: true);
Open a Shared Conversation
await deeplinkX.launchAction(
ChatGPT.openSharedConversation(shareId: 'abc123', fallbackToStore: true),
);
Open a GPT
await deeplinkX.launchAction(
ChatGPT.openGpt(gptId: 'g-abc123', fallbackToStore: true),
);
Platform Configuration
iOS
Add the ChatGPT scheme to ios/Runner/Info.plist:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>chatgpt</string>
</array>
Android
Add the ChatGPT package to <queries> in android/app/src/main/AndroidManifest.xml:
<package android:name="com.openai.chatgpt" />
Link Formats
- Open app:
chatgpt:// - Shared conversation:
https://chatgpt.com/share/{shareId} - GPT:
https://chatgpt.com/g/{gptId}
Fallback Behavior
- DeeplinkX opens ChatGPT when installed.
- If ChatGPT 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 the matching ChatGPT web URL.
- Disable all fallbacks with
disableFallback: true.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | Yes | Yes |
| Open shared conversation | Yes | Yes |
| Open GPT | Yes | Yes |
Check If ChatGPT Is Installed
final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(ChatGPT());