Jump to: navigation, search

PushCriterionGeoFence (Activity)


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