Skip to main content

Crate g3_native_plugins

Crate g3_native_plugins 

Source
Expand description

Dioxus wrappers around native platform capabilities: clipboard and share sheets, Apple and Google sign-in, opening external URLs, system back handling, background media playback, local and push notifications, over-the-air bundle updates, and receiving the URL a deep link opened the app with - plus helpers for the deep-link metadata files iOS and Android expect a server to host.

Every plugin sits behind a feature flag, so an app compiles in only what it uses. Platform coverage is not uniform; see the support matrix in the README. Where a plugin has no implementation for the current target it compiles to an inert no-op rather than failing to build, which keeps the same call sites working on web, desktop, and mobile.

Re-exports§

pub use permissions::PermissionState;
pub use NativePluginsProvider_completions::Component::NativePluginsProvider;

Modules§

deep_links
Both halves of deep linking: builders for the apple-app-site-association and assetlinks.json files that make universal links and App Links resolve to the app, and — behind the deep-links feature — the plugin that receives the URL once one does.
permissions
The permission states plugins here report, in one place so an app can treat a refusal the same way whatever was refused.

Macros§

android_asset_links_route
Define the server route that serves assetlinks.json, so Android App Links resolve for the given package and signing fingerprints.
ios_app_site_association_route
Define the server route that serves the apple-app-site-association file, so iOS universal links resolve for the given team, bundle, and paths.

Structs§

NativePluginsProviderProps
Properties for the NativePluginsProvider component.

Functions§

NativePluginsProvider
Props