segmentio / analytics-android

The hassle-free way to add analytics to your Android app.
https://segment.com/docs/sources/mobile/android/
MIT License
377 stars 214 forks source link

Segment with Intercom #823

Closed Lda1984 closed 1 year ago

Lda1984 commented 1 year ago

Hi. We use Segment sdk (4.11.0) it works well, then we integrated Intercom sdk and segment stop sending only lifecycle events, all custom events .track() works

to reproduce, add to build.gradle implementation 'io.intercom.android:intercom-sdk:14.0.4'

Also, I've found workaround .experimentalUseNewLifecycleMethods(false) but this feature not documented enough, can it affect something?

wenxi-zeng commented 1 year ago

hey @Lda1984, just want to confirm, do you happen to init analytics in a background thread?

Lda1984 commented 1 year ago

hey @Lda1984, just want to confirm, do you happen to init analytics in a background thread?

@wenxi-zeng no, it happens in main thread. is it wrong?

wenxi-zeng commented 1 year ago

nope. that's something different than I suspected. we'll have a look. thanks for reporting this issue!

Lda1984 commented 1 year ago

similar issues https://github.com/segmentio/analytics-android/pull/684

wenxi-zeng commented 1 year ago

@Lda1984 sorry take too so long to get you back. this issue should have been resolved by #824 in the latest release 4.11.1. please have a try. if the problem still persists, feel free to reopen the issue and please provide the stack trace so we can better troubleshooting. thanks!

wenxi-zeng commented 1 year ago

segment also provides an intercom integration. I released a new version of it with the latest intercom sdk. feel free to try it out. https://github.com/segment-integrations/analytics-android-integration-intercom