React Native Android Integration¶
Prerequisites¶
This setup assumes you have already setup your App Key on the Dashboard
See requirements.
- Your App must be targeted for at least Lollipop (21) and above;
- Your app’s compileSdkVersion must be set to 28 or higher;
- Pointzi supports React Native 0.60 or more recent, older versions might have incompatibility issues;
-
Pointzi uses Java 1.8 features, please make sure your app uses it as well:
1 2 3 4 5 6 7 8 9
android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } }
-
Pointzi UI is based on Google's Material Components library. Please ensure your app's theme inherits from
Theme.MaterialComponents
or its subthemes.
You need to make sure that inside your app/res/values/styles.xml
(or equivalent) the parent of AppTheme
is part of the Theme.MaterialComponents
theme. Here is an example from the Wikipedia's app:
1 2 3 4 5 6 |
|
(If you are having issues with this please check instructions here, specially step 4)
Integration Steps¶
Usage¶
Tagging¶
You can tag Pointzi installs by the following.
Tag Name | Description |
---|---|
sh_cuid | Use sh_cuid to tag an install with a unique identifier for the install. sh_cuid is needed to link the identity of App Users to Users in your - and the StreetHawk backend. Allows tagging via api call. Used to identify the same User across multiple installs. |
Code: | PointziReact.tagCuid('MY USER ABC'); |
tagString | For tagging any String and Value |
Code: | PointziReact.tagString("String key" , "String tag"); |
tagNumeric | Tagging any Numeric String and double value |
Code: | PointziReact.tagNumeric("String key" , 123); |