Skip to content

Commit 2a80f75

Browse files
daveo237markzegarelli
andauthored
Update android-faqs.md (#3878)
* Update android-faqs.md * Edits, remove image Co-authored-by: markzegarelli <[email protected]>
1 parent 5e9c10b commit 2a80f75

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/connections/sources/catalog/libraries/mobile/android/android-faqs.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,16 @@ analytics.getContext().putDeviceToken(registrationId);
127127
## Do you support Phonegap or Cordova?
128128

129129
Yes! You can use Segment's browserify'd [analytics-node](https://github.com/segmentio/analytics-node) package just like any other client-side JavaScript library.
130+
131+
132+
## Does LifecycleObserver (above version 2.6.0) work with Segment?
133+
134+
No. It depends on androidx-startup for initialization, this snippet prevents the Segment SDK from tracking app lifecycle events.
135+
The solution is to either remove the snippet completely or use `tools:node="merge"` instead of `tools:node="remove"`.
136+
137+
```java
138+
<provider
139+
android:name="androidx.startup.InitializationProvider"
140+
android:authorities="${applicationId}.androidx-startup"
141+
tools:node="merge"></provider>
142+
```

0 commit comments

Comments
 (0)