Push
This API enables the Push functionality in the mobile application.
Note
The integration described in this article may not be implemented in your environment or enabled for all your clients. Contact your admin for assistance.
Technical Details
API ID | 123 | ||||||
API Code | PUSH | ||||||
Call API version | 3 | ||||||
App Version | 6.3.3 | ||||||
Objective | Push notifications for mobile | ||||||
Classification | Notifications | ||||||
Available for |
|
Use the Push Integration in Studio
The following functions are available for use in your legacy processes, and you can also use them as blocks in Lambda processes. Click each function to see more details.
Get the current status (registered or not registered) of the Push functionality in the application. | |
Perform the Push registration, using the necessary input parameters for each platform, and generate the Registration ID. | |
Perform the Push de-registration, using the necessary input parameters for each platform. | |
Set the Badge Number (external number displayed on some platforms, generally above the application icon). | |
Increase or decrease the Badge Number. | |
Get the Badge Number (external number displayed on some platforms, generally above the application icon). | |
Define the channel that will be used for the Badge Number. | |
Add an expected structure to Push notifications, so that they can be displayed on the device. | |
Delete the expected structure of Push notifications. |
Get Status (Push)
This function is used to get the current status (registered or not registered) of the Push functionality in the application.
Parameter Configuration
This function requires you to complete the input register value with the channel name.
Function ID
Register | Value |
---|---|
110 | 1 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
344 | Channel Name | X | <<CHANNEL_NAME>> |
390 | Name of the additional channel registered in FCM (added in version 3) | <<ADDITIONAL_CHANNEL>> |
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
| ||||
231 | Status |
|
Register For Notifications
This function performs the Push registration, using the necessary input parameters for each platform, and generates the Registration ID.
Parameter Configuration
This function requires you to complete the input register values with the Sender ID, the Channel Name and the Service Name. These registers are mandatory for some devices and optional for others, refer to the Input Registers section below to learn more.
Function ID
Register | Value |
---|---|
110 | 2 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
336 | Sender ID | X (only for Android and Harmony) | <<SENDER_ID>> |
344 | Channel Name | X (only for Windows Phone) | <<CHANNEL_NAME>> |
345 | Service Name | X (only for Windows Phone) | <<SERVICE_NAME>> |
390 | Name of the additional channel registered in FCM (added in version 3) | <<ADDITIONAL_CHANNEL>> | |
391 | Additional Registration Data in JSON format registered in FCM (added in version 3) | Input 391 is not required to register additional channels when using HMS (Huawei Mobile Services) for Harmony, as additional channels are registered in the HMS project from the Huawei Developer console. In these cases, the only field required to obtain the Registration ID as output is the additional channel Sender ID. |
Output Registers
Register | Description | Value | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112 | Call Result |
| ||||||||||||||
232 | Registration ID | <<REGISTRATION_ID>> | ||||||||||||||
234 | Registration Platform | <<REGISTRATION_PLATFORM>> |
Unregister For Notifications
This function performs the Push registration, using the necessary input parameters for each platform.
Parameter Configuration
This function requires you to complete the input register value with the channel name.
Function ID
Register | Value |
---|---|
110 | 3 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
344 | Channel Name | X | <<CHANNEL_NAME>> |
390 | Name of the additional channel registered in FCM (added in version 3) | <<ADDITIONAL_CHANNEL>> |
Output Registers
Register | Description | Value | ||||||
---|---|---|---|---|---|---|---|---|
112 | Call Result |
|
Set Badge Number
This function sets the Badge Number (external number displayed on some platforms, generally above the application icon).
Parameter Configuration
This function requires you to complete the input register value with the badge number to be set.
Function ID
Register | Value |
---|---|
110 | 4 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
337 | Badge Number | X | <<BADGE_NUMBER>> |
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
|
Increment Badge Number
This function increases or decreases the Badge Number depending on the value entered as a parameter.
Parameter Configuration
This function requires you to complete the input register value with the badge number difference.
Function ID
Register | Value |
---|---|
110 | 5 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
338 | Badge Number difference | X | <<BADGE_NUMBER_DIFF>> |
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
|
Get Badge Number
This function gets the Badge Number (external number displayed on some platforms, generally above the application icon).
Parameter Configuration
This function doesn't require the configuration of any parameters.
Function ID
Register | Value |
---|---|
110 | 6 |
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
| ||||
236 | Badge Number | <<BADGE_NUMBER>> |
Synchronization Notified
This function
Parameter Configuration
This function doesn't require the configuration of any parameters.
Function ID
Register | Value |
---|---|
110 | 7 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
|
Define Badge Channel
This function defines the channel that will be used for the Badge Number (external number displayed on some platforms, generally above the application icon).
Parameter Configuration
This function requires you to complete the input register value with the name of the channel registered in FCM.
Function ID
Register | Value |
---|---|
110 | 8 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
390 | Name of the channel registered in FCM | X | <<ADDITIONAL_CHANNEL>> |
Output Registers
Register | Description | Value | ||||||
---|---|---|---|---|---|---|---|---|
112 | Call Result |
|
Add Push Structure
This function is used to add an expected structure to Push notifications, so that they can be displayed on the device.
Parameter Configuration
This function requires you to complete the input register values with the name of the additional channel registered in FCM, the Message ID and the expected structure in JSON format.
Function ID
Register | Value |
---|---|
110 | 9 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
390 | Name of the additional channel registered in FCM. | X | <<ADDITIONAL_CHANNEL>> |
391 | Message ID | X | <<MESSAGE_STRUCTURE_ID>> |
392 | Expected structure (in JSON format) | X |
Output Registers
Register | Description | Value | ||||||
---|---|---|---|---|---|---|---|---|
112 | Call Result |
|
Remove Push Structure
This function is used to delete the expected structure of Push notifications, so that they can be displayed on the device.
Parameter Configuration
This function requires you to complete the input register values with the name of the additional channel registered in FCM and the Message ID.
Function ID
Register | Value |
---|---|
110 | 10 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
390 | Name of the additional channel registered in FCM. | X | <<ADDITIONAL_CHANNEL>> |
391 | Message ID | X | <<MESSAGE_STRUCTURE_ID>> |
Output Registers
Register | Description | Value | ||||
---|---|---|---|---|---|---|
112 | Call Result |
|