Jump to: navigation, search

Difference between revisions of "Activity:PushCriterionGeoFence (Activity)"


(Created page with "Adds a push criterion that restricts the push action to a geographical area on earth. <!-- DO NOT REMOVE THIS -->{{Template:Activity/Begin}}<!-- DO NOT REMOVE THIS --> = Des...")
 
 
Line 28: Line 28:
  
 
=Example=
 
=Example=
 +
This example will send the hosting push action only to clients that are currently in a 4-sided polygon around the Techcenter building hosting the Augmensys office in Linz:
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! Argument!! Value
 +
|- align="left"
 +
| GeoCorners || <source lang="vbnet">
 +
New System.Collections.Generic.List(Of UBIK.Module.Push.PushService.GeoData) From _
 +
{ _
 +
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318612, .Lon = 14.305827}, _
 +
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.319295, .Lon = 14.308707}, _
 +
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318756, .Lon = 14.308980}, _
 +
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318093, .Lon = 14.306307} _
 +
}
 +
</source>
 +
|}
  
 
<!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS -->
 
<!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS -->

Latest revision as of 12:48, 30 March 2015

Adds a push criterion that restricts the push action to a geographical area on earth.


[edit]

Description

PushCriterionGeoFence
Name PushCriterionGeoFence
Purpose Restrict push action to geo area
Category UBIK Push
Returns true if successful
Version 2.4.2+

Arguments

Argument Type Direction Purpose
GeoCorners List<GeoData> In A list of geographical locations, representing the corners of a geo polygon

Usage

Use this criterion to restrict the hosting push action only to clients or devices that are currently within a certain geographical polygon. All other clients or devices will not be notified about the push update.

Example

This example will send the hosting push action only to clients that are currently in a 4-sided polygon around the Techcenter building hosting the Augmensys office in Linz:

Argument Value
GeoCorners
New System.Collections.Generic.List(Of UBIK.Module.Push.PushService.GeoData) From _
{ _
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318612, .Lon = 14.305827}, _
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.319295, .Lon = 14.308707}, _
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318756, .Lon = 14.308980}, _
    New UBIK.Module.Push.PushService.GeoData() With {.Lat = 48.318093, .Lon = 14.306307} _
}


See also