Skip to content

feat: plugin-idfa: Add support for iOS 13 and below #554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

cltnschlosser
Copy link
Contributor

The @available(iOS 14, *) attribute didn't prevent this function from being called by react-native / objc runtime. By what seems to be pure luck, on iOS 13 this method implementation is basically a no-op. This PR adds intentional support for iOS 13 and below by moving the iOS 14 check inside the function and handling the < iOS 14 case as well.

  • No more undefined behavior
  • iOS 13 users IDFAs will be captured

@oscb oscb merged commit 40be1ab into segmentio:master Jun 1, 2022
@cltnschlosser cltnschlosser deleted the cs_ios-13 branch June 2, 2022 14:18
oscb pushed a commit that referenced this pull request Jun 24, 2022
## [@segment/analytics-react-native-plugin-idfa-v0.3.0](https://github.com/segmentio/analytics-react-native/compare/@segment/analytics-react-native-plugin-idfa-v0.2.1...@segment/analytics-react-native-plugin-idfa-v0.3.0) (2022-06-24)

### Features

* plugin-idfa: Add support for iOS 13 and below ([#554](#554)) ([40be1ab](40be1ab))
@oscb
Copy link
Contributor

oscb commented Jun 24, 2022

🎉 This PR is included in version @segment/analytics-react-native-plugin-idfa-v0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@oscb oscb added the released label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants