react-native-appsflyer
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -41,2 +41,6 @@ | ||
appsFlyer.sendDeepLinkData = (callback) => { | ||
return RNAppsFlyer.sendDeepLinkData(callback); | ||
}; | ||
/** | ||
@@ -43,0 +47,0 @@ Deprecated |
{ | ||
"name": "react-native-appsflyer", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "React Native Appsflyer plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,2 +34,3 @@ | ||
- [trackLocation (ios only)](#appsflyertracklocationlongitude-latitude-callbackerror-coords-void-ios-only) | ||
- [sendDeepLinkData (Android only)](#senddeeplinkdata-android-only) | ||
- [Demo](#demo) | ||
@@ -281,3 +282,3 @@ | ||
`setGCMProjectID(GCMProjectID): void` | ||
`enableUninstallTracking(GCMProjectID): void` | ||
@@ -294,10 +295,7 @@ Set the GCM API key. AppsFlyer requires a Google Project Number and GCM API Key to enable uninstall tracking. | ||
setGCMProjectID(){ | ||
const gcmProjectId = "987186475229"; | ||
appsFlyer.setGCMProjectID(gcmProjectId, | ||
(gcmProjectID) => { | ||
enableUninstallTracking(){ | ||
const gcmProjectNum = "987186475229"; | ||
appsFlyer.enableUninstallTracking(gcmProjectNum, | ||
(success) => { | ||
//... | ||
}, | ||
(error) => { | ||
console.error(error); | ||
}) | ||
@@ -421,2 +419,24 @@ } | ||
#### <a id="senddeeplinkdata-android-only"> **`appsFlyer.sendDeepLinkData(String url): void`** | ||
Report Deep Links for Re-Targeting Attribution (Android). | ||
This method should be called when an app is opened using a deep link. | ||
*Example:* | ||
```javascript | ||
componentDidMount() { | ||
Linking.getInitialURL().then((url) => { | ||
if (appsFlyer) { | ||
appsFlyer.sendDeepLinkData(url); // Report Deep Link to AppsFlyer | ||
// Additional Deep Link Logic Here ... | ||
} | ||
}).catch(err => console.error('An error occurred', err)); | ||
} | ||
``` | ||
More about Deep Links in React-Native: [React-Native Linking](https://facebook.github.io/react-native/docs/linking.html) | ||
More about Deep Links in Android: [Android Deep Linking , Adding Filters](https://developer.android.com/training/app-indexing/deep-linking.html#adding-filters) | ||
--- | ||
##### <a id="setUserEmails"> **`appsFlyer.setUserEmails(options, errorC, successC): void`** | ||
@@ -423,0 +443,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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
91
495
176896
18