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.
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().
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.
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.