new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tauri · Plugins and security · all subjects

geolocation/setup

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Geolocation plugin setup automatic installation

To automatically install the geolocation plugin, use one of the following commands depending on your package manager: npm run tauri add geolocation, yarn run tauri add geolocation, pnpm tauri add geolocation, deno task tauri add geolocation, bun tauri add geolocation, or cargo tauri add geolocation.

Geolocation plugin manual setup Cargo

To manually add the geolocation plugin to Cargo.toml, run the command 'cargo add tauri-plugin-geolocation --target "cfg(any(target_os = "android", target_os = "ios"))"' in the src-tauri folder.

Geolocation plugin manual setup Rust initialization

To initialize the geolocation plugin in lib.rs, add the following code in the setup closure: #[cfg(mobile)] app.handle().plugin(tauri_plugin_geolocation::init());

Geolocation plugin JavaScript binding installation

Install the JavaScript guest bindings using one of the following commands depending on your package manager: npm install @tauri-apps/plugin-geolocation, yarn add @tauri-apps/plugin-geolocation, pnpm add @tauri-apps/plugin-geolocation, deno add npm:@tauri-apps/plugin-geolocation, or bun add @tauri-apps/plugin-geolocation.

Geolocation iOS configuration Info.plist

Apple requires privacy descriptions in Info.plist for location information. Add the key NSLocationWhenInUseUsageDescription with a string value describing why the app needs to access location, for example: <key>NSLocationWhenInUseUsageDescription</key> <string>Required to do XY</string>

Geolocation Android automatic permissions

The geolocation plugin automatically adds the following permissions to AndroidManifest.xml: android.permission.ACCESS_COARSE_LOCATION and android.permission.ACCESS_FINE_LOCATION.

Geolocation Android GPS feature requirement

If an app requires GPS functionality to operate, add the following to AndroidManifest.xml: <uses-feature android:name="android.hardware.location.gps" android:required="true" />. The Google Play Store uses this property to determine whether to show the app to devices without GPS capabilities.

Give your agent this brain