StaticallowThe tracking blocklist item to allow.
StaticblockBlocks tracking for the specified [AirbridgeTrackingBlocklist] item.
This function adds the given item to the current TrackingBlocklist
applied in the airbridge.json, disabling tracking at runtime.
The tracking blocklist item to block.
StaticclearStaticclearStaticclearStaticclearStaticclearStaticclearStaticclearStaticclickNotifies that an in-app area within an app has been clicked on by the user.
tracking link uri
OptionalonSuccess: (() => void)Callback to be invoked when tracking link is successfully handled.
OptionalonFailure: ((error: Error) => void)Callback to be invoked when any error occurs.
true if all of the following conditions are met below, false otherwise.
StaticcreateCreates a tracking-link using airbridge-server that move user to specific page of app and track click-event.
The channel of tracking-link.
The option to create tracking-link.
Created tracking-link is delivered if succeed.
OptionalonFailure: ((error: Error) => void)Error is delivered if failed.
StaticcreateCreates a script that initialize the web interface.
The token to initialize Airbridge Web SDK.
The JavaScript code to post commands from web to app.
web interface script
StaticdisableSDKStaticenableSDKStaticfetchFetch airbridgeGeneratedUUID of SDK.
Callback to be invoked when airbridgeGeneratedUUID is successfully handled.
OptionalonFailure: ((error: Error) => void)Callback to be invoked when any error occurs.
StaticfetchFetch deviceUUID of SDK.
Callback to be invoked when deviceUUID is successfully handled.
OptionalonFailure: ((error: Error) => void)Callback to be invoked when any error occurs.
StatichandleStaticimpressionNotifies that the in-app area within the app has been exposed to the user.
tracking link uri
OptionalonSuccess: (() => void)Callback to be invoked when tracking link is successfully handled.
OptionalonFailure: ((error: Error) => void)Callback to be invoked when any error occurs.
true if all of the following conditions are met below, false otherwise.
StaticisStaticisSDKEnabledStaticisStaticisStaticregisterStaticremoveStaticremoveStaticremoveStaticrequestRequests App Tracking Transparency authorization. iOS only
Callback to be invoked with the resulting authorization status.
true if the request was accepted for processing,
false if the SDK is not initialized or is disabled.
StaticsetSets additional attributes of the events that are tracked by the SDK automatically.
The attributes replace the ones set before for each of the given types.
Passing undefined or empty attributes for both parameters clears the ones set before.
To apply the attributes to the install event, disable autoStartTracking,
call this method, then call startTracking.
Type(s) of the events to apply the attributes.
OptionalsemanticAttributes: Record<string, any>Additional attributes of the events that are defined by Airbridge.
OptionalcustomAttributes: Record<string, any>Additional attributes of the events.
StaticsetStaticsetStaticsetStaticsetStaticsetStaticsetStaticsetStaticsetStaticstartStarts tracking event automatically for each user purchases product through in-app-purchase.
This will be deprecated in a future release. Use trackStoreInAppPurchaseEvent instead.
StaticstartStaticstopStaticstopStatictrackTracks user behavior through event tracking with attributes.
Name of event.
OptionalsemanticAttributes: Record<string, any>Additional attributes of the event that defined by Airbridge.
OptionalcustomAttributes: Record<string, any>Additional attributes of the event.
StatictrackingReturns the current App Tracking Transparency authorization status. iOS only
AirbridgeTrackingAuthorization.NotDetermined if the SDK is not initialized or is disabled.
StatictrackTracks an in-app-purchase event with the purchase passed from the app.
Information of the purchase such as
transactionIdentifier, productIdentifier and quantity.
OptionalsemanticAttributes: Record<string, any>Additional attributes of the event that defined by Airbridge.
OptionalcustomAttributes: Record<string, any>Additional attributes of the event.
Allows tracking for the specified [AirbridgeTrackingBlocklist] item. This function removes the given item from the current TrackingBlocklist applied in the
airbridge.json, enabling tracking at runtime.