Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@ptomasroos/react-native-idfa
Advanced tools
Readme
npm install @ptomasroos/react-native-idfa
react-native link
Since this library is using the advertising identifier, you must remember to add AdSupport in your IOS project.
Add AdSupport.framework under "Link Binary With Libraries".
import { IDFA } from '@ptomasroos/react-native-idfa';
class Basic extends Component {
state = {
IDFA: '',
};
componentDidMount() {
IDFA.getIDFA().then((idfa) => {
this.setState({ IDFA: idfa, });
})
.catch((e) => {
console.error(e);
});
}
render() {
return (
<View style={{ flex: 1 }}>
<Text>Your IDFA is : {this.state.IDFA}</Text>
</View>
);
}
}
git clone git@github.com:ptomasroos/react-native-idfa.git
cd react-native-idfa/examples/Basic
npm install
npm run start
Open simulators and see your IDFA
In your build.gradle make sure to force the ersion to whatever version makes sense through our your dependencies
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.getRequested().getGroup() == 'com.google.android.gms') {
// If different projects require different versions of
// Google Play Services it causes a crash on run.
// Fix by overriding version for all projects.
details.useVersion('17.0.0')
}
}
}
FAQs
Android and iOS module to read IDFA
The npm package @ptomasroos/react-native-idfa receives a total of 11 weekly downloads. As such, @ptomasroos/react-native-idfa popularity was classified as not popular.
We found that @ptomasroos/react-native-idfa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.