Skip to content

Commit 9220f49

Browse files
committed
resolve localytics-kotlin edits
1 parent 68bda53 commit 9220f49

File tree

2 files changed

+24
-33
lines changed

2 files changed

+24
-33
lines changed

src/connections/sources/catalog/libraries/mobile/apple/destination-plugins/localytics-swift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KE
7171
.trackApplicationLifecycleEvents(true))
7272
analytics.add(plugin: LocalyticsDestination())
7373
```
74-
Your events will now be given Localytics session data and start flowing to Localytics via device-mode.
74+
Your events now have Localytics session data and start flowing to Localytics in device-mode.
7575

7676
## Identify
7777

src/connections/sources/catalog/libraries/mobile/kotlin-android/destination-plugins/localytics-kotlin-android.md

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ title: Analytics Kotlin Localytics Plugin
33
id: 54521fd925e721e32a72eed0
44
---
55
Our Analytics-Kotlin Localytics Destination Plugin is open sourced on GitHub. Feel free to
6-
[check it out here](https://github.com/segment-integrations/analytics-kotlin-localytics).
6+
[check it out here](https://github.com/segment-integrations/analytics-kotlin-localytics){:target="_blank”}.
77

8-
## Getting Started
8+
## Getting started
99

1010
1. From the Segment Destinations page click **Add Destination**.
11-
2. Search for `Localytics` and select it in the results that appear.
12-
3. Choose which Source to connect `Localytics` to.
13-
4. Add your `Localytics` App Key to the Destination setting.
14-
11+
2. Search for Localytics and select it in the results that appear.
12+
3. Choose which source to connect to your Localytics destination.
13+
4. Add your Localytics App Key to the destination's settings tab.
1514

1615
Once the Segment library is integrated with your site or app, toggle Localytics
1716
on in your Segment destinations, and add your application's **App Key** which
@@ -28,7 +27,7 @@ here](https://docs.localytics.com/dev/android.html#include-localytics-xml-file){
2827

2928

3029
## Adding the dependency
31-
To install the Segment-Localytics integration, simply add this line to your gradle file:
30+
To install the Segment-Localytics integration, add this line to your gradle file:
3231

3332
```
3433
implementation 'com.segment.analytics.kotlin.destinations:localytics:<latest_version>'
@@ -64,9 +63,9 @@ allprojects {
6463
}
6564
```
6665

67-
## Using the Plugin in your App
66+
## Using the plugin in your app
6867

69-
Open the file where you setup and configure the Analytics-Kotlin library. Add this plugin to the list of imports.
68+
Open the file where you set up and configured the Analytics-Kotlin library. Add this plugin to the list of imports.
7069

7170
```
7271
import com.segment.analytics.kotlin.destinations.localytics.LocalyticsDestination
@@ -82,47 +81,39 @@ Just under your Analytics-Kotlin library setup, call `analytics.add(plugin = ...
8281
analytics.add(plugin = LocalyticsDestination())
8382
```
8483

85-
Your events will now begin to flow to Localytics in Device Mode.
86-
84+
Your events now have Localytics session data and start flowing to Localytics in device-mode.
8785

8886
## Identify
8987

90-
When you call [`identify`](/docs/connections/spec/identify/), we'll set the Localytics
91-
customer Id, and set any special Localytics traits you provide, such as `name`,
92-
or `email`, and any custom traits as well.
88+
When you make an [Identify](/docs/connections/spec/identify/) call, Segment sets the Localytics
89+
customerId and any special Localytics traits you provide, like `name`,
90+
`email`, or custom traits.
9391

9492
## Track
9593

96-
Whenever you call [`track`](/docs/connections/spec/track/), we'll log an event with
97-
Localytics. [`track`](/docs/connections/spec/track/) takes the name of the event and any
98-
optional properties you want to associate with the event.
94+
When you make a [Track](/docs/connections/spec/track/) call, Segment logs an event with Localytics containing the name of the event and any optional event properties.
9995

100-
- - -
10196

10297
## Push Notifications
10398

104-
Push notifications on Android require a bit of extra work to setup.
99+
To enable push notifications on your Android app, complete the following steps:
105100

106-
* First, you need to make sure Localytics is being bundled. You can find out
107-
more information about bundled integrations in our [Android documentation](/docs/connections/sources/catalog/libraries/mobile/android/#about-mobile-connection-modes).
108-
109-
* Follow Localytics' documentation to [set up the permission in your
101+
1. To confirm that Localytics is bundled, verify that Localytics is set to `false` in your integrations object. For
102+
more information about bundled integrations, see Segment's [Android documentation](/docs/connections/sources/catalog/libraries/mobile/android/#about-mobile-connection-modes).
103+
2. Follow steps 1-3 of Localytics' documentation to [set up the permission in your
110104
AndroidManifest.xml](http://docs.localytics.com/dev/android.html#modify-androidmanifest-push-android){:target="_blank"}.
111-
Specifically, the **AndroidManifest** changes regarding the `GcmReceiver`,
112-
`GcmListenerService`, `InstanceIDListenerServer`, and `PushTrackingActivity`
113-
classes.
114-
115-
* In lieu of step four, you will register the Push receiver in your Activity or
105+
106+
3. Make the AndroidManifest changes to the `GcmReceiver`,
107+
`GcmListenerService`, `InstanceIDListenerServer`, and `PushTrackingActivity` classes as noted in the [Localytics Push messaging documentation](https://help.uplandsoftware.com/localytics/dev/android.html#migrating-v3-to-v4-push-messaging-android){:target="_blank"}.
108+
4. Register the Push receiver in your Activity or
116109
Application class within a Segment `onIntegrationReady` method:
117-
118-
```java
110+
```java
119111
@Override protected void onResume() {
120112
super.onResume();
121-
122113
Analytics.with(this).onIntegrationReady(BundledIntegration.LOCALYTICS, new Callback() {
123114
@Override public void onIntegrationReady(Object integration) {
124115
Localytics.registerPush("YOUR-SENDER-ID");
125116
}
126117
});
127118
}
128-
```
119+
```

0 commit comments

Comments
 (0)