Skip to content

MOBILE-621: Pass the IDFA to the SDK in the example app (merge after mindbox-sdk 2.17.0) - #69

Draft
justSmK wants to merge 3 commits into
developfrom
feature/MOBILE-621-idfa-setter
Draft

justSmK wants to merge 3 commits into
developfrom
feature/MOBILE-621-idfa-setter

Conversation

@justSmK

@justSmK justSmK commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

https://tracker.yandex.ru/MOBILE-621

After MOBILE-390 the iOS SDK no longer reads the IDFA: the app passes it through MindboxSdk.setAdvertisingIdentifier (mindbox-cloud/react-native-sdk#240). The plugin itself does not change; the example shows the integration: expo-tracking-transparency asks for permission once and gives the identifier, the app passes it at launch and on every return to the foreground, and ios.privacyManifests in app.json declares the tracking host.

Merge only after mindbox-sdk with the setter is published: the example still depends on ^2.16.0, which has no such method, so it does not typecheck yet. The dependency bump joins this PR after that release. Not run yet: expo prebuild and a launch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The example calls an API missing from its locked SDK dependency, breaking typechecking and iOS execution, while overlapping permission flows can leave tracking authorization unrequested without a retry.

2 open issues
What changed in this PR

Adds iOS advertising identifier integration to the Expo example without changing the plugin. The PR remains a draft pending an SDK release that provides the setter.

Changes:

  • Requests tracking permission and passes the advertising identifier at launch and on foreground activation.
  • Adds the tracking-transparency dependency and permission message.
  • Declares the tracking domain in the iOS privacy manifest.
File Description
examples/​MindboxExpoExample/​yarn.lock Locks the tracking-transparency dependency.
examples/​MindboxExpoExample/​src/​screens/​HomeScreen.tsx Adds tracking permission and identifier forwarding.
examples/​MindboxExpoExample/​package.json Adds expo-tracking-transparency.
examples/​MindboxExpoExample/​app.json Configures the permission message and tracking privacy declarations.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The pending SDK upgrade and unavailable setter contracts require validation of identifier semantics, generated iOS privacy metadata, and on-device ATT and notification prompt behavior before approval.

2 open issues

Review effort: Balanced

@justSmK
justSmK force-pushed the feature/MOBILE-621-idfa-setter branch from 8189ebc to 76db511 Compare November 13, 2026 12:24
@justSmK
justSmK marked this pull request as ready for review November 13, 2026 12:26
The iOS SDK no longer reads the IDFA itself: the app asks for tracking
permission, reads the identifier with expo-tracking-transparency and
passes it at launch and on every return to the foreground. The tracking
host is declared through ios.privacyManifests, without which the SDK
keeps the identifier on the device.
iOS shows no tracking prompt while another permission alert is open and
does not keep the request. The example asks for notifications on the same
mount, so a single request at launch could leave the status undetermined
for the whole launch and pass zeros to the SDK. Apple's documentation of
requestTrackingAuthorization says to check for notDetermined to decide on
another call, so the check now runs at launch and on every activation.
@justSmK
justSmK force-pushed the feature/MOBILE-621-idfa-setter branch from 76db511 to 3fc46ad Compare November 16, 2026 12:18
@justSmK
justSmK marked this pull request as draft November 17, 2026 08:49
@justSmK justSmK changed the title MOBILE-621: Pass the IDFA to the SDK in the example app MOBILE-621: Pass the IDFA to the SDK in the example app (merge after mindbox-sdk 2.17.0) Nov 17, 2026
The docs and the Flutter and React Native examples declare the IDFA as Device ID collected for tracking; the Expo example only declared the tracking domain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants