examples/01-app-demos/geolocation-native-plugin/README.md
A minimal Dioxus application that implements a native plugin.
The plugin demonstrated here makes it possible to access the user's geolocation. It does a few things:
The example shares the same metadata pipeline as any plugin crate: the native Gradle/Swift
artifacts are embedded via linker symbols and bundled automatically by dx.
# Inside the repository root
dx serve --project examples/01-app-demos/geolocation --platform mobile
For Android/iOS you’ll need the respective toolchains installed (Android SDK/NDK, Xcode) so the
geolocation crate’s build.rs can build the native modules. The UI also works on desktop/web,
but location calls will return an error because the plugin only supports mobile targets—those
errors are shown inline in the demo.