/_bridge/geofences/status#The permission state, without prompting.
IGeofencesBridge.GetStatusAsyncTSGeofencesBridge.getStatus- Response
- 200 GeofenceAccessResult
GeofenceAccessResult · 1 field
accessAccessState
Nothing matches that. Try a shorter word, or browse the topics.
The geofencing bridge gives the page permissions, the regions it monitors, and their enter and exit transitions, delivered as geofence.status events while a page is open and to background.js otherwise. It’s backed by Shiny.Geofencing.
Android, iOS, Mac Catalyst and Windows. Everywhere else every route answers 501.
The OS caps how many circles it monitors (20 on iOS, 60 on Android). For more, for polygons, or for regions such as the state or city the device is in, use Region Geofencing.
dotnet add package Shiny.AppDeviceBridge.Geofencingbuilder.UseAppDeviceBridge( bridge => bridge.AddGeofenceBridge(), webApp => { /* … */ });| Client | C# | TypeScript |
|---|---|---|
IGeofencesBridge |
AddGeofencesBridgeClient() |
GeofencesBridge |
Monitoring survives the page: transitions reach background.js when no page is open — see Native Calls & Background.
import { GeofencesBridge } from "@shinyorg/appdevicebridge";
const geofences = new GeofencesBridge();const { access } = await geofences.requestAccess();if (access !== "Available") return;
await geofences.onStatus(s => console.log(s.identifier, s.state)); // "Entered" | "Exited"await geofences.startMonitoring({ identifier: "office", latitude: 43.6532, longitude: -79.3832, radiusMeters: 200, singleUse: false, notifyOnEntry: true, notifyOnExit: true});/_bridge/geofences/status#The permission state, without prompting.
IGeofencesBridge.GetStatusAsyncTSGeofencesBridge.getStatusaccess | AccessState |
/_bridge/geofences/access#Requests the background location permission geofencing needs.
IGeofencesBridge.RequestAccessAsyncTSGeofencesBridge.requestAccessaccess | AccessState |
/_bridge/geofences/regions#The regions being monitored.
IGeofencesBridge.GetRegionsAsyncTSGeofencesBridge.getRegionsidentifier | string | Names the region; monitoring one with an identifier already in use replaces it. |
latitude | number | |
longitude | number | |
radiusMeters | number | Must be positive. |
singleUse | boolean | Stop monitoring after the first transition. |
notifyOnEntry | boolean | |
notifyOnExit | boolean |
/_bridge/geofences/regions#Starts monitoring a region. Fails with 409 without permission.
IGeofencesBridge.StartMonitoringAsyncTSGeofencesBridge.startMonitoringapplication/json · GeofenceRegionidentifier | string | Names the region; monitoring one with an identifier already in use replaces it. |
latitude | number | |
longitude | number | |
radiusMeters | number | Must be positive. |
singleUse | boolean | Stop monitoring after the first transition. |
notifyOnEntry | boolean | |
notifyOnExit | boolean |
/_bridge/geofences/regions#Stops monitoring every region.
IGeofencesBridge.StopAllMonitoringAsyncTSGeofencesBridge.stopAllMonitoring/_bridge/geofences/regions/{identifier}#Stops monitoring one region.
IGeofencesBridge.StopMonitoringAsyncTSGeofencesBridge.stopMonitoring| Parameter | In | Type | |
|---|---|---|---|
identifier | path | string | required |
/_bridge/geofences/regions/{identifier}/state#Whether the device is inside a monitored region now. Fails with 404 for a region not monitored.
IGeofencesBridge.GetStateAsyncTSGeofencesBridge.getState| Parameter | In | Type | |
|---|---|---|---|
identifier | path | string | required |
identifier | string | |
state | GeofenceState |
geofence.status#The device entered or left a region, while the page is open.
IGeofencesBridge.OnStatusAsyncTSGeofencesBridge.onStatusGeofenceStatusidentifier | string | |
state | GeofenceState |
JSON property names are camelCase and enums travel as their names. A ? marks a property the payload may omit;| null one that may be null.
GeofenceAccessResultobject#access | AccessState |
AccessStateenum#Where a permission stands. Reported by every bridge that needs one; the names match Shiny's own.
"Unknown""NotSupported""NotSetup""Disabled""Restricted""Denied""Available"GeofenceRegionobject#A circular region.
identifier | string | Names the region; monitoring one with an identifier already in use replaces it. |
latitude | number | |
longitude | number | |
radiusMeters | number | Must be positive. |
singleUse | boolean | Stop monitoring after the first transition. |
notifyOnEntry | boolean | |
notifyOnExit | boolean |
GeofenceStatusobject#identifier | string | |
state | GeofenceState |
GeofenceStateenum#"Unknown""Entered""Exited"These routes sit under AppDeviceBridgePolicies.Bridges like every other bridge: callers on this device by default.
See Security.