Pushwoosh Outsystems plugin client actions
A list of client actions available
Last updated
A list of client actions available
Last updated
The Plugin provides a set of client actions to facilitate push notification management. These actions allow you to register and unregister devices, set and get tags, manage inbox messages, and more.
Validates if the Pushwoosh plugin is currently available.
Registers a device for push notifications and retrieves a Push Token.
Unregisters a device from receiving push notifications.
Retrieves the device ID, which should be a unique identifier.
Gets the Device Type (Android, iOS, or Windows).
Fetches tags data from Pushwoosh.
Invoke the GetTags action to fetch the tags data from Pushwoosh.
The returned tags are accessible via the GetTags.Tags list.
Use the LogMessage action to log each tag's key and value.
Sends a message to Pushwoosh when a particular event in your application happens.
Output Parameters
1. Assign
Set up key-value pairs to define the data for the event. For instance, KeyValue1.AttributeName as "test1" and KeyValue1.Value as "test1value". Similarly, define KeyValue2 with the appropriate attribute name and value.
2. Create lists of attributes to be associated with the event.
Finally, configure the PostEvent action.
Sets the application icon badge number.
Sets custom application language instead of the default system language.
Sends tags and their values to Pushwoosh.
Assign tag values. In the example below, there are two tags:
Tag1 with a name testTag and its value set to the current date.
Tag2 with a name testTag2 and its value set to True.
2. Then, append tags to a list. In this example:
ListAppend3 adds Tag1 to the LocalTag list.
ListAppend4 adds Tag2 to the LocalTag list.
3. After populating the list with the necessary tags, use the SetTags client action to send this list to Pushwoosh.
Assigns a custom User ID to this device.
The process of working with Inbox is the following:
Load a list of InboxMessage objects.
Use these objects to render the inbox view.
Perform the actions listed below, or delete these objects using the actions described below.
Fetches inbox notifications from Pushwoosh.
Marks the inbox message as read.
Input Parameters
Performs action for specified inbox messages (e.g., open URL in a browser).
Output Parameters
Removes a message from inbox.
Returns the total number of inbox messages.
Returns the number of unread inbox messages.
Returns the number of inbox messages with no action performed.
ApplicationCode
Text, the Pushwoosh application code obtained from your account settings.
RegisterToken
Token received from Google or Apple for the device
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
DeviceHwid
The unique identifier of the device.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when there was an error.
DeviceTypeId
The identifier of this device type.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
Tags
Returns Key, Value Record List containing all tags assigned to this device.
EventName
Text, name of the event
EventAttributes
Key, Value Record List, used to send additional event data to Pushwoosh (i.e. for the "UserLogin" action you might want to send login data, such as - {"username":"John"})
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
BadgeNumber
Integer, Icon badge number.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
Language
Text, Custom application language in 2-letter ISO format (e.g., "en", "es", "fr")
Tags
TagName, TagValue Record List containing all tags you want to send. TagName type should always be Text, while TagValue can be Text, Integer, Boolean, Date, etc.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
UserID
Text, custom User ID.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
code
Text
Unique ID of an inbox notification.
title
Text
Notification title.
message
Text
Notification message.
imageUrl
Text
URL of a custom image attached to a notification.
sendDate
Date
Time
Represents the time when a notification was sent.
type
Integer
Type of notification.
Possible values:
0 - regular notification
1 - rich media notification
2 - URL notification
3 - deep link notification
bannerUrl
Text
Contains URL of an Android banner.
customData
Key, Value Record List
Contains a list of parameters passed as custom data.
isRead
Boolean
True if inbox notification is read.
isActionPerformed
Boolean
True if notification action is performed.
For regular notifications, true if a notification is read.
For Rich Media, true if rich media was presented.
For URL and deep links, true if URL/deep link was opened.
InboxMessages
InboxMessage List, list of all inbox messages.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
MessageCode
Text, code of an InboxMessage (received as a parameter of an InboxMessage in LoadMessages)
Success
True if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
MessageCode
Text, code of an InboxMessage (received as a parameter of an InboxMessage in LoadMessages)
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
MessageCode
Text, code of an InboxMessage (received as a parameter of an InboxMessage in LoadMessages)
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
MessagesCount
Integer, total number of inbox messages.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
UnreadMessagesCount
Integer, number of unread inbox messages.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
MessagesWithNoActionPerformedCount
Integer, number of inbox messages with no action performed.
Success
Returns true if everything goes as expected, false if there is an error.
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.
IsAvailable
Returns true if the plugin is available to use, false otherwise
Error
An error containing the error code and error message with details about any error that might have occurred. Only set when the Success output parameter is false.