openLocationSettings

abstract fun openLocationSettings()

Opens the system Location Services settings.

Use it when areLocationServicesEnabled is false or the status is LOCATION_SERVICES_DISABLED; when the switch is on but this app's permission was denied, use openAppSettings. On Android it opens the system Location page; iOS has no public link to that switch, so it opens this app's settings page - tell the member the path (Privacy & Security, then Location Services). Replaces facilities().openLocationSettings().

Android (Kotlin)

turnOnLocationButton.setOnClickListener { AFCore.locations().openLocationSettings() }

iOS (Swift)

Button("Turn on Location Services") { AFCore.shared.locations().openLocationSettings() }