Adds a push criterion that restricts the push action to specific users.
[edit]
Description
PushCriterionLogin | |
---|---|
Name | PushCriterionLogin |
Purpose | Restrict push action to specific user |
Category | UBIK Push |
Returns | true if successful |
Version | 2.4.2+ |
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
Login | Login | In | The user/login object to which the push action should be restricted to; this argument is mutually exclusive with the argument LoginUID |
LoginUID | Guid | In | The UID of the user/login to which the push action should be restricted to; this argument is mutually exclusive with the argument Login |
Result | Boolean | Out | True if successful, false if an error occurred |
Usage
Use this criterion to restrict the hosting push action only to clients or devices where a specific user is logged in. 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 where the user/login with the configured UID (logins are instances of the MetaClass System.Main.UBIKSession.Login) is currently logged in.
Argument | Value |
---|---|
LoginUID | new System.Guid("20e3cb27-ab46-439d-a684-416539ba33d3") |