Platforms and setup
Native platforms: ios, android.
Public actions
Sygic.open
factory Sygic.open({final bool fallbackToStore = false})
Launch with DeeplinkX.launchApp. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
fallbackToStore | bool | No | false |
Sygic.view
static SygicViewAction view({ required final Coordinate coordinate, final bool fallbackToStore = false, })
Launch with DeeplinkX.launchAction. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
coordinate | Coordinate | Yes | — |
fallbackToStore | bool | No | false |
Sygic.directionsWithCoords
static SygicDirectionsWithCoordsAction directionsWithCoords({ required final Coordinate destination, final SygicTransportMode mode = SygicTransportMode.drive, final bool fallbackToStore = false, })
Launch with DeeplinkX.launchAction. Native platforms: ios, android. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.
| Parameter | Type | Required | Default |
|---|---|---|---|
destination | Coordinate | Yes | — |
mode | SygicTransportMode | No | SygicTransportMode.drive |
fallbackToStore | bool | No | false |
Provider setup and examples
DeeplinkX supports the custom URI scheme used by Sygic GPS Navigation so you can open map previews or launch turn-by-turn guidance directly from your Flutter app.
References
- Sygic developer program overview: https://www.sygic.com/developers/professional-navigation-sdk/introduction
Available Actions
Launch Sygic
final deeplinkX = DeeplinkX();
await deeplinkX.launchApp(Sygic.open());
View Map
await deeplinkX.launchAction(
Sygic.view(
coordinate: const Coordinate(latitude: 48.1486, longitude: 17.1077),
),
);
Directions With Coordinates
await deeplinkX.launchAction(
Sygic.directionsWithCoords(
destination: const Coordinate(latitude: 48.1486, longitude: 17.1077),
mode: SygicTransportMode.drive, // or .walk
),
);
Platform Configuration
iOS
Add the Sygic scheme to the LSApplicationQueriesSchemes array in ios/Runner/Info.plist:
<string>com.sygic.aura</string>
Android
Allow querying the package in android/app/src/main/AndroidManifest.xml:
<queries>
<package android:name="com.sygic.aura" />
</queries>
URI Formats
- View map:
com.sygic.aura://coordinate|{longitude}|{latitude}|show - Directions (driving/walking):
com.sygic.aura://coordinate|{longitude}|{latitude}|{drive|walk}
Fallback Behavior
- DeeplinkX opens the native app when installed.
- If the app is missing and
fallbackToStoreistrue, we redirect to the appropriate store listing. - Otherwise the action falls back to
https://www.sygic.com/gps-navigation. - Set
disableFallback: truewhen callinglaunchActionto skip both store and web fallbacks.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | ✔️ | ✔️ (website) |
| View map | ✔️ | ✔️ |
| Directions with coordinates | ✔️ | ✔️ |