Platforms and setup
Native platforms: ios, android.
Public actions
AirNavigationPro.openAirNavigationPro.viewAirNavigationPro.directToAirNavigationPro.directionsWithCoords
AirNavigationPro.open
factory AirNavigationPro.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 |
AirNavigationPro.view
static AirNavigationProViewAction 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 |
AirNavigationPro.directTo
static AirNavigationProDirectToAction directTo({ required final Coordinate destination, 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 | — |
fallbackToStore | bool | No | false |
AirNavigationPro.directionsWithCoords
static AirNavigationProDirectToAction directionsWithCoords({ required final Coordinate destination, 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 | — |
fallbackToStore | bool | No | false |
Provider setup and examples
DeeplinkX supports Air Navigation Pro's iOS airnavpro URI scheme and Android package-targeted HTTPS direct-to links so Flutter apps can open a coordinate in Air Navigation Pro on iOS and Android.
Air Navigation Pro's map view action uses the documented direct-to URL, which is also exposed directly through AirNavigationPro.directTo.
References
- Air Navigation Pro URL manual: https://airnavigation.aero/manual/en/html/manual/moving-map.html#create-via-url
- Air Navigation Pro App Store listing: https://apps.apple.com/us/app/air-navigation-pro/id301046057
Available Actions
Launch Air Navigation Pro
final deeplinkX = DeeplinkX();
await deeplinkX.launchApp(AirNavigationPro.open());
View Map
await deeplinkX.launchAction(
AirNavigationPro.view(
coordinate: const Coordinate(latitude: 46.2044, longitude: 6.1432),
),
);
Direct To
await deeplinkX.launchAction(
AirNavigationPro.directTo(
destination: const Coordinate(latitude: 46.2381, longitude: 6.1090),
),
);
Directions With Coordinates
await deeplinkX.launchAction(
AirNavigationPro.directionsWithCoords(
destination: const Coordinate(latitude: 46.2381, longitude: 6.1090),
),
);
Platform Configuration
iOS
Add the Air Navigation Pro scheme to the LSApplicationQueriesSchemes array in ios/Runner/Info.plist:
<string>airnavpro</string>
Android
Allow querying the package in android/app/src/main/AndroidManifest.xml:
<queries>
<package android:name="com.xample.airnavigation" />
</queries>
URI Formats
- iOS direct-to:
airnavpro://direct-to?coordinates=wgs84-decimal&location={latitude}_{longitude},0.0 - Android direct-to and web fallback:
https://airnavigation.aero/direct-to?coordinates=wgs84-decimal&location={latitude}_{longitude},0.0
Fallback Behavior
- DeeplinkX opens the native app when installed.
- If the app is missing and
fallbackToStoreistrue, we redirect to the appropriate store listing. - Otherwise coordinate actions fall back to the matching
https://airnavigation.aero/direct-toURL. - Set
disableFallback: truewhen callinglaunchActionto skip both store and web fallbacks.
Fallback Support Matrix
| Action | Store Fallback | Web Fallback |
|---|---|---|
| Open app | Yes | Yes |
| View map | Yes | Yes |
| Direct to | Yes | Yes |
| Directions with coordinates | Yes | Yes |