lytics / ios-sdk

MIT License
0 stars 0 forks source link

Documentation Issues #116

Closed mgacy closed 1 year ago

mgacy commented 1 year ago

Issues with the documentation at https://docs.lytics.com/docs/sdk-for-ios

Organized by section

iOS Quick Start

Overview

About the Lytics SDK for iOS

Installation

Before You Begin

Step 2. Configure the SDK

The API token is now passed separately:

Lytics.shared.start(apiToken: "YOUR-VALID-LYTICS-API-TOKEN")

Technical Documenttion

Configuration

Remove from Table:

Additionally, the following are unsupported following the resolution of #56

I have a PR -- #119 -- removing them from the code

Add to Table:

Parameter Description Type Default Value
requireConsent A Boolean value indicating whether a user must explicitly opt-in to event tracking. Bool false
maxLoadRetryAttempts The maximum number of times to retry failed load requests before throwing an error. Int 1
maxUploadRetryAttempts The maximum number of times to try and resend an event on failure. Int 3
defaultTable The table used when fetching user profiles. String user
MAYBE (not sure if there's reason to document these for typical usage):
collectionEndpoint The data upload endpoint. URL https://api.lytics.io/collect/json
entityEndpoint The entity (personalization or profile) endpoint. URL https://api.lytics.io/api/entity

Change in Table:

Change example config:

Lytics.shared.start(apiToken: "YOUR-VALID-LYTICS-API-TOKEN") { configuration in 
    configuration.logLevel = .debug 
    configuration.defaultStream = "my_custom_ios_stream" 
    configuration.maxQueueSize = 15
}

Identifying Users

Tracking Events

Screen Tracking

In addition to OS version and device model name, the SDK also tracks:


Other

Missing:

The documentation does not cover the following methods:

It also does not cover the SwiftUI helper methods provided by the optional LyticsUI library:

RaeEversmann commented 1 year ago

See https://docs.lytics.com/suggested-edits/645e91d4be261600116943a2

kgruenef commented 1 year ago

@mgacy the updates should all be visible at https://docs.lytics.com/docs/sdk-for-ios now. Anything remaining before we close this issue?

mgacy commented 1 year ago

@kgruenef no, it looks good

kgruenef commented 1 year ago

Thanks @mgacy going to close this issue now!