react-native-appsflyer
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -33,2 +33,6 @@ | ||
appsFlyer.setUserEmails = (options, successC, errorC) => { | ||
return RNAppsFlyer.setUserEmails(options, successC, errorC); | ||
}; | ||
appsFlyer.getAppsFlyerUID = (callback) => { | ||
@@ -35,0 +39,0 @@ return RNAppsFlyer.getAppsFlyerUID(callback); |
{ | ||
"name": "react-native-appsflyer", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "React Native Appsflyer plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
<img src="https://www.appsflyer.com/wp-content/themes/ohav-child/images/logo.svg" width="200"> | ||
<img src="https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg" width="200"> | ||
@@ -18,2 +18,3 @@ # react-native-appsflyer | ||
- [setCustomerUserId](#setCustomerUserId) | ||
- [setUserEmails](#setUserEmails) | ||
- [trackEvent](#trackEvent) | ||
@@ -189,3 +190,3 @@ - [Track App Uninstalls](#track-app-uninstalls) | ||
#####<a id="trackEvent"> **`appsFlyer.trackEvent(eventName, eventValues, callback): void`** | ||
#####<a id="trackEvent"> **`appsFlyer.trackEvent(eventName, eventValues, errorC, successC): void`** | ||
@@ -202,3 +203,3 @@ | ||
| `eventName` | `String` | custom event name, is presented in your dashboard. See the Event list [HERE](https://github.com/AppsFlyerSDK/react-native-appsflyer/blob/master/ios/AppsFlyerTracker.h) | | ||
| `eventValue` | `Object` | event details | | ||
| `eventValues` | `Object` | event details (optional) | | ||
@@ -216,8 +217,9 @@ *Example:* | ||
appsFlyer.trackEvent(eventName, eventValues, (error, result) => { | ||
if (error) { | ||
console.error(error); | ||
} else { | ||
//... | ||
} | ||
appsFlyer.trackEvent(eventName, eventValues, errorC, successC) => { | ||
(result) => { | ||
//... | ||
}, | ||
(error) => { | ||
console.error(error); | ||
} | ||
}) | ||
@@ -229,2 +231,5 @@ | ||
### <a id="track-app-uninstalls"> Track App Uninstalls | ||
@@ -391,4 +396,46 @@ | ||
#####<a id="setUserEmails"> **`appsFlyer.setUserEmails(options, errorC, successC): void`** | ||
AppsFlyer enables you to report one or more of the device’s associated email addresses. You must collect the email addresses and report it to AppsFlyer according to your required encryption method. | ||
More info you can find on [AppsFlyer-SDK-Integration-Android](https://support.appsflyer.com/hc/en-us/articles/207032126-AppsFlyer-SDK-Integration-Android) and [AppsFlyer-SDK-Integration-iOS](https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS) | ||
| parameter | type | description | | ||
| ----------- |-----------------------------|--------------| | ||
| `options` | `Object` | `setUserEmails` configuration | | ||
**`options`** | ||
| name | type | default | description | | ||
| -----------|---------|---------|------------------------| | ||
| `emailsCryptType` |`int` | 0 | NONE - `0` (default), SHA1 - `1`, MD5 - `2` | | ||
| `emails` |`array` | | comma separated list of emails | | ||
*Example:* | ||
```javascript | ||
const options = { | ||
"emailsCryptType": 2, | ||
"emails":[ | ||
"user1@gmail.com", | ||
"user2@gmail.com" | ||
] | ||
}; | ||
appsFlyer.setUserEmails(options, | ||
(response) => { | ||
this.setState( { ...this.state, setUserEmailsResponse: response }); | ||
}, | ||
(error) => { | ||
console.error(error); | ||
}) | ||
``` | ||
--- | ||
##Demo | ||
@@ -395,0 +442,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172127
76
448