This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the listener was successfully added.
If sso_token_handle or listener is invalid, or the notification URL is not set and none is provided in the properties file.
If notification is not enabled and the notification URL parameter is invalid.
If any other error occurred.