Skip to main content

Veritran Docs

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.

<<REGISTRATION_DATA>>

Output Registers

Register

Description

Value

112

Call Result

000

NO_ERROR

001

GENERIC_ERROR

002

API_NOT_IMPLEMENTED_ERROR

003

FUNCTION_NOT_IMPLEMENTED_ERROR

100

GENERAL_EXCEPTION

101

WRONG_JSON_FORMAT

103

SENDER_ID_NULL

232

Registration ID

<<REGISTRATION_ID>>

234

Registration Platform

<<REGISTRATION_PLATFORM>>