@trueorigin/react-native
instead.
Install
The SDK is on Maven Central asdev.trueorigin:trueorigin-android. In your app module’s
build.gradle.kts:
mavenCentral() and google() must be among your repositories, as in every new Android
project: the SDK brings Google’s Install Referrer library and kotlinx-coroutines-core
with it.
Without Maven Central
Without Maven Central
Every release is also on
GitHub as
trueorigin.aar with its SHA-256. Put the AAR in your module’s libs/ folder and
declare the two libraries yourself:Configure
Your SDK key is shown when you create the app, and can be rotated in the dashboard under Settings → SDK key. It is a public client key: it ships inside your app.Read the attribution
TrueOrigin.onAttribution { attribution -> … } is the callback form, called once on the
main thread. Both return right away on later launches: the result is stored.
TrueOrigin.currentAttribution reads the stored result without waiting, or null before
the first answer. The statuses are the same as on iOS: see
Reading the attribution.
Options
TrueOrigin.installId is the SDK’s id for this install. It stays the same until the app
is uninstalled; a reinstall gets a new one. It and revenueCatAttributes() throw before
configure.
RevenueCat
After configuring both SDKs, attach the install identity before purchases, on every app start and after each successful RevenueCatlogIn or logOut:
Privacy
The SDK does not read the advertising ID orANDROID_ID and asks for no permission
beyond INTERNET; Google’s Install Referrer library adds its own permission to bind to
Google Play. Its only identifier is a random install id in the app’s no-backup storage,
removed with the app and never in a backup.
What your app declares in Google Play’s Data safety form is your decision. What the SDK
sends is listed in our privacy policy.