I'm making a button that activates it to create a geofence around the device. I'm having trouble defining the device as the owner of the geofence.
Do I have a function that I can assign the geofence to the device
Function pastebin

Do you mean you don't know which API to call? You can check what official web app sends. Check network tab in your browser developer tools.
@tananaev Thanks!
I totally forgot about DevTools GoogleChrome
I'm making a button that activates it to create a geofence around the device. I'm having trouble defining the device as the owner of the geofence.
Do I have a function that I can assign the geofence to the device
Function pastebin