← Home🐞

Geofencing Addon — JS Bridge Test

detecting…

Loads the real SDK build from webtonative_min_0b4dd99c18.js and calls its window.WTN.Geofencing.* functions. Each call returns a Promise that resolves with the native response and rejects with an error string (not in the app, method missing in this app version, etc.). All responses and errors, plus the unprompted geofenceTrigger push (the SDK has no listener API for it, so this page taps the native androidCBHook/iosCBHook hooks the SDK installs to catch it anyway), are printed to the log below as they arrive.

Create a Zone — config + map, side by side

Free OpenStreetMap tiles via Leaflet — no API key. Fetch your current location or tap the map to place the zone centre, drag the pin or use the radius slider to size it, fill in the trigger settings on the left, then either save it to the map (to lay out several zones visually) or send it straight to the device with addGeofenceZone().

150 m

Zones on this map (0)

Export/Copy saves every zone below (including trigger/notification settings) as one JSON array. Import (file) or Paste (below) merges it back in — matching IDs are updated, new IDs are added. Note: Export/Import/Paste only affect this page's map — addGeofenceZone() only ever takes one zone per call (that's the native API's actual shape, not a limit of this page), so "Send ALL" below just calls it once per zone on the map.

  • No zones added yet.

Tap/click the map to move the zone's centre. Drag the pin to fine-tune it. The dashed circle previews the radius set on the left.

Start / Permission

Zone management

Webhook override

Live log