Trigger callback
  • I fired a trigger to check callback trigger,
    in response of trigger that I fired , got the all trigger data and its detail.
    but it is not calling the given callback url .

    @result = GEOLOQI.post("trigger/create", {
            :place_id => @place[:place_id],
            :key        => "myuniquekeyfor"+lat.to_s+longi.to_s,
             :url => url,
            :type       => "callback",
            :text       => "Welcome to "+place_name,
            :place_name => place_name,
            :trigger_after => 60,
            :one_time => 0
        })
     

    {"trigger_id":"3Z_q","place_id":"2oRY","key":"myuniquekeyfor21.799818.8695","type":"callback","trigger_on":"enter","trigger_after":60,"one_time":0,"callback_url":"http://hotq8deals.goodlogics.com/en/mobile/get_triggered_detail","extra":{}
    plz suggest the solution for it.
    Thanks

  • 1 Comment sorted by
  • You can test your callback URL by using the trigger/run/:id command, passing in the trigger ID. This will simulate what happens when someone encounters the area, and will send a POST to your callback URL.

    Keep in mind that since you have set "trigger_after=60", when this trigger is run in response to a device's location, the device will have to be in the trigger area for 60 seconds or the trigger will not run. If the trigger is too small, it is likely it won't register as being within the area the entire time.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion