Install and set up
The Dart SDK is five pub packages released together. A Flutter app adds the ones it draws with, and a Dart server adds the pure ones.
In a Flutter app that shows a map:
Add mountaya_navigation_flutter beside them for turn-by-turn navigation. On a Dart server or in a command-line tool:
mountaya_admin mints session tokens, manages your organization and verifies webhooks. Only a server adds it.
The map plugin needs iOS 15.5 and Android API level 24. The navigation plugin alone needs iOS 14.0. Raise the floors your app sets lower:
On iOS, set Minimum Deployments of the Runner target to 15.5 in Xcode, and platform :ios, '15.5' in ios/Podfile if your app uses CocoaPods.
A release build on Android reaches the network only with the INTERNET permission in android/app/src/main/AndroidManifest.xml:
An app that locates its reader or navigates also declares location access. Navigation shows the lines.
Put your publishable key in a .env file that git ignores:
Read it where the compiler sees it, and run with flutter run --dart-define-from-file=.env:
A server reads its keys from the environment:
Create both keys under Organization → API keys in the Mountaya app.
The secret key and mountaya_admin belong on a server only.