segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
354 stars 181 forks source link

Violation of User Data policy #881

Closed v-boichuk closed 8 months ago

v-boichuk commented 9 months ago

Application with @segment/analytics-react-native can't pass the Play Console review. I've seen other closed issues, but they do not resolve the issue. We migrated to v2 of segment analytics, also manually set collectDeviceId param to false during initialization. Nothing helps.

here is reply from reviewers:

We reviewed SDKs used by your app and found noncompliant version(s) of SDK(s) which collects persistent device identifiers. Persistent device identifiers may not be linked to other personal and sensitive user data or resettable device identifiers.

Issue details

We found an issue in the following area(s):

SDK: Segment com.segment.analytics.android:analytics (consider upgrading to version 4.10.1)

used version:

Steps to reproduce 1.Install latest version of Segment analytics libraries.

  1. Submit app to Play console review
oscb commented 9 months ago

RN v2 doesn't use the native SDK package com.segment.analytics.android:analytics anymore which is the component that is being marked here.

In previous issues this has been due to caches keeping the v1 native modules around.

I suggest making a clean build:

I'm not particularly sure why Android in particular keeps around this module (sometimes) when migrating from v1 but you don't need it.