TTMSFNCCustomWebPushDB.TryFindSubscriptionByID Method
Attempts to retrieve the subscription payload for the given user.
API unit family: TMS.TMSFNCWebPushDB
Declaring type: TTMSFNCCustomWebPushDB
Overloads
Overload 1
Attempts to retrieve the subscription payload for the given user.
function TryFindSubscriptionByID(AUserID: string; var ASubscription: TTMSFNCWebPushSubscription): Boolean; overload;
Parameters
| Name | Description |
|---|---|
AUserID |
User identifier to look up. |
ASubscription |
Receives the subscription payload when a match is found; left unchanged otherwise. |
Returns
True when a matching subscription was found and returned; otherwise False.
Overload 2
Attempts to retrieve the subscription payload matching both the given user and browser identifiers.
function TryFindSubscriptionByID(AUserID, ABrowserID: string; var ASubscription: TTMSFNCWebPushSubscription): Boolean; overload;
Parameters
| Name | Description |
|---|---|
AUserID |
User identifier to look up. |
ABrowserID |
Browser or device identifier to look up. |
ASubscription |
Receives the subscription payload when a match is found; left unchanged otherwise. |
Returns
True when a matching subscription was found and returned; otherwise False.