Table of Contents

TTMSFNCWebPushDB.UpdateSubscription Method

Replaces the stored subscription payload for the first record matching the given user.

API unit family: TMS.TMSFNCWebPushDB Declaring type: TTMSFNCWebPushDB Inherited from: TTMSFNCCustomWebPushDB

Overloads

Overload 1

Replaces the stored subscription payload for the first record matching the given user.

procedure UpdateSubscription(AUserID: string; ANewInfo: TTMSFNCWebPushSubscription); overload;

Remarks

Requires the user identifier field to be active. The update is applied only when the before-update event allows it.

Parameters

Name Description
AUserID User identifier whose record is updated.
ANewInfo New subscription payload to store.

Overload 2

Replaces the stored subscription payload for the record matching both the given user and browser identifiers.

procedure UpdateSubscription(AUserID, ABrowserID: string; ANewInfo: TTMSFNCWebPushSubscription); overload;

Remarks

Requires both identifier fields to be active. The update is applied only when the before-update event allows it.

Parameters

Name Description
AUserID User identifier to match.
ABrowserID Browser or device identifier to match.
ANewInfo New subscription payload to store.

Overload 3

Replaces a subscription identified by its current endpoint with new payload values.

procedure UpdateSubscription(AOldInfo, ANewInfo: TTMSFNCWebPushSubscription); overload;

Remarks

The update is applied only when the before-update event allows it.

Parameters

Name Description
AOldInfo Existing subscription whose endpoint locates the record to update.
ANewInfo New subscription payload to store.