Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
-fix device mode description
  • Loading branch information
alanjcharles authored Jan 23, 2024
1 parent c8e9c11 commit b369220
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Analytics-Swift Localytics

Add Localytics session tracking support to your applications via this plugin for [Analytics-Swift](https://github.com/segmentio/analytics-swift)

Note that this plugin simply adds session data for Localytics, and events are sent via Cloud Mode.
Add Localytics Device Mode support to your applications via this plugin for [Analytics-Swift](https://github.com/segmentio/analytics-swift)

## Adding the dependency

***Note:*** the `Localytics` library itself will be installed as an additional dependency.

### via Xcode
In the Xcode `File` menu, click `Add Packages`. You'll see a dialog where you can search for Swift packages. In the search field, enter the URL to this repo.
In the Xcode `File` menu, click `Add Packages`. You'll see a dialog where you can search for Swift packages. In the search field, enter the URL for this repo:

```
https://github.com/segment-integrations/analytics-swift-localytics
```

You'll then have the option to pin to a version, or specific branch, as well as which project in your workspace to add it to. Once you've made your selections, click the `Add Package` button.

Expand Down Expand Up @@ -43,7 +45,7 @@ let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KE
.trackApplicationLifecycleEvents(true))
analytics.add(plugin: LocalyticsDestination())
```
Your events will now be given Localytics session data and start flowing to Localytics via Cloud Mode.
Your events will now be given Localytics session data and start flowing to Localytics via Device Mode.


## Support
Expand Down

0 comments on commit b369220

Please sign in to comment.