Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

message/device

Contents

URL

https://api.geoloqi.com/1/message/device

Description

Send a JSON payload to a device via its socket connection. If there is no socket connection open, it will be sent next time the device connects, but it will not be sent more than 30 seconds after the message was created.

Note: You can only send messages to yourself or to users subscribed to one of your layers.

Supported Request Methods

POST

Parameters

  • user_id
    The ID of the user who will receive the message
  • layer_id
    The ID of the layer to receive the message. The mobile clients will discard the message unless that layer's window is active.
  • data
    An object to send in the payload to the device.

Response

Success

If the message was queued successfully, you will get a response like the following.
HTTP/1.1 200 OK
 
{
  "result":"ok",
  "username":"aaronpk",
  "user_id":"r93"
}