Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ log
results
browserstack.json
.DS_Store
package-lock.json
stats.json
.idea
.cursor
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Iterable's API, see the [API Overview](https://support.iterable.com/hc/articles/

Notes:

- The SDK does not track `inAppDelete` events.
- The SDK supports generating `inAppDelete` events by passing `deleteAction` to `trackInAppConsume`.

- :rotating_light: Due to a limitation in WebKit (which affects iOS web browsers,
like Safari), in-app messages displayed in an iOS web browser browser can't
Expand Down Expand Up @@ -859,7 +859,7 @@ See also:

## `trackInAppConsume`

Deletes an in-app message from the server by calling [`POST /api/events/trackInAppConsume`](https://support.iterable.com/hc/articles/204780579#post-api-events-inappconsume).
Deletes an in-app message from the server by calling [`POST /api/events/trackInAppConsume`](https://support.iterable.com/hc/articles/204780579#post-api-events-inappconsume). Pass `deleteAction` to generate an `inAppDelete` event.

```ts
const trackInAppConsume = (
Expand Down Expand Up @@ -1408,6 +1408,7 @@ interface InAppEventRequestParams {
location?: string;
};
closeAction?: string;
deleteAction?: string;
deviceInfo: {
appPackageName: string;
};
Expand Down
1 change: 1 addition & 0 deletions src/events/events.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const eventRequestSchema = object().shape({
location: string()
}),
closeAction: string(),
deleteAction: string(),
deviceInfo: object()
.shape({
deviceId: string().required(),
Expand Down
1 change: 1 addition & 0 deletions src/events/inapp/events.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const eventRequestSchema = object().shape({
location: string()
}),
closeAction: string(),
deleteAction: string(),
deviceInfo: object()
.shape({
deviceId: string().required(),
Expand Down
1 change: 1 addition & 0 deletions src/events/inapp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface InAppEventRequestParams {
location?: string;
};
closeAction?: string;
deleteAction?: string;
deviceInfo: {
appPackageName: string; // customer-defined name
};
Expand Down
Loading