From 6a377920afd9efd94f467ae2acb40ae4c1bb924f Mon Sep 17 00:00:00 2001 From: Dori Frost Date: Mon, 15 Apr 2024 12:37:13 +0300 Subject: [PATCH 01/16] User invite: added note per kb request --- Docs/RN_UserInvite.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Docs/RN_UserInvite.md b/Docs/RN_UserInvite.md index dbb7750e..e0099286 100644 --- a/Docs/RN_UserInvite.md +++ b/Docs/RN_UserInvite.md @@ -19,7 +19,11 @@ The link that is generated for the user invite will use this OneLink ID as the b | oneLinkID | string | oneLinkID | | callback | function | success callback | - + > πŸ“˜ Note + > + > - Make sure to call `setAppInviteOneLinkID()` **before** calling `start`. + > - The OneLink template must be assigned to the app. + ##### 2. `generateInviteLink(parameters, success, error)` A complete list of supported parameters is available [here](https://support.appsflyer.com/hc/en-us/articles/115004480866-User-Invite-Tracking). Custom parameters can be passed using a userParams{} nested object, as in the example above. From 820159bbacb9ab831ed26305cd8d990e4f13c7b4 Mon Sep 17 00:00:00 2001 From: Dori Frost Date: Sun, 18 Aug 2024 16:10:11 +0300 Subject: [PATCH 02/16] UDL - added a note at the beginning of the file Per Slack: https://appsflyer.slack.com/archives/C5RDRS58X/p1723186908673099 --- Docs/RN_UnifiedDeepLink.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Docs/RN_UnifiedDeepLink.md b/Docs/RN_UnifiedDeepLink.md index 0d3baccf..a7561941 100644 --- a/Docs/RN_UnifiedDeepLink.md +++ b/Docs/RN_UnifiedDeepLink.md @@ -6,6 +6,10 @@ order: 9 hidden: false --- +> πŸ“˜ **UDL privacy protection** +> +> For new users, the UDL method only returns parameters relevant to deferred deep linking: `deep_link_value` and `deep_link_sub1` to `deep_link_sub10`. If you try to get any other parameters (`media_source`, `campaign`, `af_sub1-5`, etc.), they return `null`. + ### UDL flow 1. The SDK is triggered by: From 611e1278cc29386f1e7dce4313b86854590222f7 Mon Sep 17 00:00:00 2001 From: Amit Levy Date: Thu, 5 Sep 2024 16:21:01 +0300 Subject: [PATCH 03/16] Updated demo app gradle --- .../android/gradle.properties | 2 +- demos/appsflyer-react-native-app/ios/.xcode.env | 11 +++++++++++ demos/appsflyer-react-native-app/package.json | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 demos/appsflyer-react-native-app/ios/.xcode.env diff --git a/demos/appsflyer-react-native-app/android/gradle.properties b/demos/appsflyer-react-native-app/android/gradle.properties index 3bfa93bb..f1419d1e 100644 --- a/demos/appsflyer-react-native-app/android/gradle.properties +++ b/demos/appsflyer-react-native-app/android/gradle.properties @@ -10,7 +10,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m -org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit diff --git a/demos/appsflyer-react-native-app/ios/.xcode.env b/demos/appsflyer-react-native-app/ios/.xcode.env new file mode 100644 index 00000000..3d5782c7 --- /dev/null +++ b/demos/appsflyer-react-native-app/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) diff --git a/demos/appsflyer-react-native-app/package.json b/demos/appsflyer-react-native-app/package.json index be5716ad..ad68af26 100644 --- a/demos/appsflyer-react-native-app/package.json +++ b/demos/appsflyer-react-native-app/package.json @@ -14,11 +14,11 @@ "@react-navigation/stack": "^6.0.7", "react": "18.1.0", "react-native": "0.70.6", - "react-native-appsflyer": "file:../..", + "react-native-appsflyer": "../../", "react-native-elements": "^3.4.2", "react-native-gesture-handler": "^1.10.3", "react-native-safe-area-context": "^3.3.2", - "react-native-screens": "3.7.2", + "react-native-screens": "^3.34.0", "react-native-vector-icons": "8.1.0" }, "devDependencies": { From ad28509bf423b919101eea154a1ba5c253cfd416 Mon Sep 17 00:00:00 2001 From: Amit Levy Date: Thu, 5 Sep 2024 16:38:40 +0300 Subject: [PATCH 04/16] update workflow to support java 17 --- .github/workflows/build-apps-workflow.yml | 35 ++++++++++++++--------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-apps-workflow.yml b/.github/workflows/build-apps-workflow.yml index 8e88e8a9..01eb0270 100644 --- a/.github/workflows/build-apps-workflow.yml +++ b/.github/workflows/build-apps-workflow.yml @@ -5,20 +5,27 @@ on: jobs: Build-RN-android: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: install react-native-appsflyer on an Android app - run: | - cd demos/appsflyer-react-native-app - yarn install - yarn add ../../ --save - - name: Build apk - run: | - cd demos/appsflyer-react-native-app/android - chmod +x ./gradlew - ./gradlew assembleRelease - + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + + - name: install react-native-appsflyer on an Android app + run: | + cd demos/appsflyer-react-native-app + yarn install + yarn add ../../ --save + + - name: Build apk + run: | + cd demos/appsflyer-react-native-app/android + chmod +x ./gradlew + ./gradlew assembleRelease # Build-RN-ios: # runs-on: macos-latest # steps: From 20a6bbd0276f5ce2175e6fe4582e4e7d41fbd49b Mon Sep 17 00:00:00 2001 From: "Amit.kremer" Date: Thu, 5 Sep 2024 14:04:41 +0000 Subject: [PATCH 05/16] 6.15.1-rc1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bbaec1eb..65fcbd98 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-appsflyer", - "version": "6.15.1", + "version": "6.15.1-rc1", "description": "React Native Appsflyer plugin", "main": "index.js", "types": "index.d.ts", From aeded9c83bdad751f87ed115a741838a57e01d08 Mon Sep 17 00:00:00 2001 From: Amit kremer Date: Sun, 15 Sep 2024 09:35:04 +0300 Subject: [PATCH 06/16] New support comment --- .github/workflows/responseToSupportIssue.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/responseToSupportIssue.yml b/.github/workflows/responseToSupportIssue.yml index cb67a697..23e3e648 100644 --- a/.github/workflows/responseToSupportIssue.yml +++ b/.github/workflows/responseToSupportIssue.yml @@ -19,11 +19,5 @@ jobs: issue-number: ${{ github.event.issue.number }} body: | πŸ‘‹ Hi @${{ github.event.issue.user.login }} and Thank you for reaching out to us. - In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. - When submitting the ticket, please specify: - - βœ… your AppsFlyer sign-up (account) email - - βœ… app ID - - βœ… production steps - - βœ… logs - - βœ… code snippets - - βœ… and any additional relevant information. + You can contact AppsFlyer support through the Customer Assistant Chatbot for assistance with troubleshooting issues or product guidance. + To do so, please follow [this article](https://support.appsflyer.com/hc/en-us/articles/23583984402193-Using-the-Customer-Assistant-Chatbot). From e4152eba91a7784af86b96e8c434e61396bdd736 Mon Sep 17 00:00:00 2001 From: "Amit.kremer" Date: Sun, 15 Sep 2024 12:03:03 +0000 Subject: [PATCH 07/16] 6.15.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 65fcbd98..bbaec1eb 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-appsflyer", - "version": "6.15.1-rc1", + "version": "6.15.1", "description": "React Native Appsflyer plugin", "main": "index.js", "types": "index.d.ts", From ea60cb943ea7192563c37f277c518a957b3aa3d3 Mon Sep 17 00:00:00 2001 From: "Amit.kremer" Date: Sun, 15 Sep 2024 12:03:06 +0000 Subject: [PATCH 08/16] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f4c90ff..a0741ce4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 6.15.1 + Release date: *2024-09-15* + +- React Native >> Update Plugin to v6.15.1 +- React native plugin >> UDL failed deferred deep linking + ## 6.14.3 Release date: *2024-04-28* From a1d466e2d940cfd8e637a5456e4b3ce52151f56e Mon Sep 17 00:00:00 2001 From: Amit Levy <118281047+al-af@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:05:22 +0300 Subject: [PATCH 09/16] Update updateReadme.sh --- .github/workflows/scripts/updateReadme.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts/updateReadme.sh b/.github/workflows/scripts/updateReadme.sh index d2a5dc32..23c706e3 100755 --- a/.github/workflows/scripts/updateReadme.sh +++ b/.github/workflows/scripts/updateReadme.sh @@ -1,6 +1,6 @@ #!/bin/bash -ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0-9]+') -android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0-9]+') -sed -i -e -r "s/Android AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md -sed -i -e -r "s/iOS AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/iOS AppsFlyer SDK \*\*v$ios_sdk_version\*\*/g" README.md \ No newline at end of file +ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+') +android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+') +sed -i -r "s/Android AppsFlyer SDK \*\*v[0-9]+\.[0-9]+\.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md +sed -i -r "s/iOS AppsFlyer SDK \*\*v[0-9]+\.[0-9]+\.[0-9]+\*\*/iOS AppsFlyer SDK \*\*v$ios_sdk_version\*\*/g" README.md From 253d9fed1c3d6d9e88830e8abfc32653b91f6674 Mon Sep 17 00:00:00 2001 From: Amit Levy <118281047+al-af@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:09:01 +0300 Subject: [PATCH 10/16] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60091f8e..fafe8f29 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ ### This plugin is built for -- Android AppsFlyer SDK **v6.13.0** -- iOS AppsFlyer SDK **v6.13.1** +- Android AppsFlyer SDK **v6.15.1** +- iOS AppsFlyer SDK **v6.15.1** ## ❗❗ Breaking changes when updating to v6.x.x❗❗ From b1d204bf229ec8627873949720c31633cb2fccda Mon Sep 17 00:00:00 2001 From: Amit kremer Date: Sun, 29 Sep 2024 09:29:35 +0300 Subject: [PATCH 11/16] add minimum rn version --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fafe8f29..5e946225 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ - Android AppsFlyer SDK **v6.15.1** - iOS AppsFlyer SDK **v6.15.1** +- Tested with React-Native **v0.62.0** (older versions might be supported) ## ❗❗ Breaking changes when updating to v6.x.x❗❗ @@ -46,24 +47,28 @@ And removed the following ones: If you have used 1 of the removed APIs, please check the integration guide for the updated instructions. - --- +--- + +## πŸš€ Getting Started - ## πŸš€ Getting Started - [Installation](/Docs/RN_Installation.md) -- [***Expo*** Installation](/Docs/RN_ExpoInstallation.md) +- [**_Expo_** Installation](/Docs/RN_ExpoInstallation.md) - [Integration](/Docs/RN_Integration.md) - [Test integration](/Docs/RN_Testing.md) - [In-app events](/Docs/RN_InAppEvents.md) - [Uninstall measurement](/Docs/RN_UninstallMeasurement.md) - [Send consent for DMA compliance](/Docs/RN_CMP.md) -## πŸ”— Deep Linking + +## πŸ”— Deep Linking + - [Integration](/Docs/RN_DeepLinkIntegrate.md) -- [***Expo*** Integration](/Docs/RN_ExpoDeepLinkIntegration.md) +- [**_Expo_** Integration](/Docs/RN_ExpoDeepLinkIntegration.md) - [Unified Deep Link (UDL)](/Docs/RN_UnifiedDeepLink.md) - [User Invite](/Docs/RN_UserInvite.md) + ## πŸ§ͺ Sample Apps + - [React-Native Sample App](/demos/appsflyer-react-native-app) - [πŸ†• Expo Sample App](https://github.com/AppsFlyerSDK/appsflyer-expo-sample-app) ### [API reference](/Docs/RN_API.md) - From ed62341086e6eaab39d761fddf3dac0920f91c06 Mon Sep 17 00:00:00 2001 From: Liaz Kamper Date: Tue, 8 Oct 2024 12:04:14 +0300 Subject: [PATCH 12/16] Docs: fix Expo deeplink link --- Docs/RN_ExpoDeepLinkIntegration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/RN_ExpoDeepLinkIntegration.md b/Docs/RN_ExpoDeepLinkIntegration.md index 939cc0c9..32a9b2a8 100644 --- a/Docs/RN_ExpoDeepLinkIntegration.md +++ b/Docs/RN_ExpoDeepLinkIntegration.md @@ -23,7 +23,7 @@ For more info please check out the [OneLinkβ„’ Deep Linking Guide](https://suppo 1. In order to use AppsFlyer's deeplinks you need to configure intent filters/scheme/associatedDomains as described in [Expo's guide](https://docs.expo.dev/guides/linking/#universal-links-on-ios). -2. **For Android apps:** You need to add `setIntent()` inside the `onNewIntent` method like described [here](RN_DeepLinkIntegrate.md#android-deeplink-setup). This plugin is NOT adding this code out the box, so you need to implement it **manually or with [custom config plugin](https://docs.expo.dev/modules/config-plugin-and-native-module-tutorial/#4-creating-a-new-config-plugin)** +2. **For Android apps:** You need to add `setIntent()` inside the `onNewIntent` method like described [here](https://dev.appsflyer.com/hc/docs/rn_deeplinkintegrate#android-deeplink-setup). This plugin is NOT adding this code out the box, so you need to implement it **manually or with [custom config plugin](https://docs.expo.dev/modules/config-plugin-and-native-module-tutorial/#4-creating-a-new-config-plugin)** ## Full app.json example From 441714afcf5fb01d61b488df7354eb41d1ab2385 Mon Sep 17 00:00:00 2001 From: Dori Frost Date: Sun, 17 Nov 2024 17:34:02 +0200 Subject: [PATCH 13/16] API - fixed internal links Changed all internal links to small case. --- Docs/RN_API.md | 85 ++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/Docs/RN_API.md b/Docs/RN_API.md index 64eeb6cb..3ae7dd39 100644 --- a/Docs/RN_API.md +++ b/Docs/RN_API.md @@ -9,52 +9,55 @@ hidden: false ## APIs The list of available methods for this plugin is described below. +- [APIs](#apis) - [Android and iOS APIs](#android-and-ios-apis) - - [initSDK](#initsdk) + - [initSdk](#initsdk) - [startSdk](#startsdk) - [logEvent](#logevent) - - [setCustomerUserId](#setcustomeruserid) - - [stop](#stop) - - [setAppInviteOneLinkID](#setappinviteonelinkid) - - [setAdditionalData](#setadditionaldata) - - [setResolveDeepLinkURLs](#setresolvedeeplinkurls) - - [setOneLinkCustomDomain](#setonelinkcustomdomain) - - [setCurrencyCode](#setcurrencycode) - - [logLocation](#loglocation) - - [anonymizeUser](#anonymizeuser) - - [getAppsFlyerUID](#getappsflyeruid) - - [setHost](#sethost) - - [setUserEmails](#setuseremails) - - [generateInviteLink](#generateinvitelink) - - [setSharingFilterForAllPartners](#setsharingfilterforallpartners) *Deprecated* - - [setSharingFilter](#setsharingfilter) *Deprecated* - - [setSharingFilterForPartners](#setsharingfilterforpartners) - - [validateAndLogInAppPurchase](#validateandloginapppurchase) - - [updateServerUninstallToken](#updateserveruninstalltoken) - - [sendPushNotificationData](#sendpushnotificationdata) - - [addPushNotificationDeepLinkPath](#addpushnotificationdeeplinkpath) - - [appendParametersToDeepLinkingURL](#appendparameterstodeeplinkingurl) - - [disableAdvertisingIdentifier](#disableAdvertisingIdentifier) - - [enableTCFDataCollection](#enableTCFDataCollection) - - [setConsentData](#setConsentData) - - [logAdRevenue](#logAdRevenue) + - [setCustomerUserId](#setcustomeruserid) + - [stop](#stop) + - [setAppInviteOneLinkID](#setappinviteonelinkid) + - [setAdditionalData](#setadditionaldata) + - [setResolveDeepLinkURLs](#setresolvedeeplinkurls) + - [setOneLinkCustomDomains](#setonelinkcustomdomains) + - [setCurrencyCode](#setcurrencycode) + - [logLocation](#loglocation) + - [anonymizeUser](#anonymizeuser) + - [getAppsFlyerUID](#getappsflyeruid) + - [setHost](#sethost) + - [setUserEmails](#setuseremails) + - [generateInviteLink](#generateinvitelink) + - [setSharingFilterForAllPartners](#setsharingfilterforallpartners) + - [setSharingFilter](#setsharingfilter) + - [setSharingFilterForPartners](#setsharingfilterforpartners) + - [validateAndLogInAppPurchase](#validateandloginapppurchase) + - [updateServerUninstallToken](#updateserveruninstalltoken) + - [sendPushNotificationData](#sendpushnotificationdata) + - [addPushNotificationDeepLinkPath](#addpushnotificationdeeplinkpath) + - [appendParametersToDeepLinkingURL](#appendparameterstodeeplinkingurl) + - [disableAdvertisingIdentifier](#disableadvertisingidentifier) + - [enableTCFDataCollection](#enabletcfdatacollection) + - [setConsentData](#setconsentdata) + - [logAdRevenue from v6.15.1](#logadrevenue-from-v6151) + - [Parameters](#parameters) + - [Usage Example for React Native:](#usage-example-for-react-native) - [Android Only APIs](#android-only-apis) - - [setCollectAndroidID](#setcollectandroidid) - - [setCollectIMEI](#setcollectimei) - - [setDisableNetworkData](#setdisablenetworkdata) - - [performOnDeepLinking](#performondeeplinking) + - [setCollectAndroidID](#setcollectandroidid) + - [setCollectIMEI](#setcollectimei) + - [setDisableNetworkData `setDisableNetworkData(disable)`](#setdisablenetworkdata-setdisablenetworkdatadisable) + - [performOnDeepLinking](#performondeeplinking) - [iOS Only APIs](#ios-only-apis) - - [disableCollectASA](#disablecollectasa) - - [setUseReceiptValidationSandbox](#setusereceiptvalidationsandbox) - - [disableSKAD](#disableskad) - - [setCurrentDeviceLanguage](#setcurrentdevicelanguage) - - [disableIDFVCollection](#disableidfvcollection) + - [disableCollectASA](#disablecollectasa) + - [disableIDFVCollection](#disableidfvcollection) + - [setUseReceiptValidationSandbox](#setusereceiptvalidationsandbox) + - [disableSKAD](#disableskad) + - [setCurrentDeviceLanguage](#setcurrentdevicelanguage) - [AppsFlyerConversionData](#appsflyerconversiondata) - - [onInstallConversionData](#oninstallconversiondata) - - [onInstallConversionFailure](#oninstallconversionfailure) - - [onAppOpenAttribution](#onappopenattribution) - - [onAttributionFailure](#onattributionfailure) - - [onDeepLink](#ondeeplink) + - [onInstallConversionData](#oninstallconversiondata) + - [onInstallConversionFailure](#oninstallconversionfailure) + - [onAppOpenAttribution](#onappopenattribution) + - [onAttributionFailure](#onattributionfailure) + - [onDeepLink](#ondeeplink) --- ## Android and iOS APIs @@ -798,7 +801,7 @@ let GDPRUser = AppsFlyerConsent.forGDPRUser(true, false); appsFlyer.setConsentData(nonGDPRUser /**or**/ GDPRUser); ``` -### logAdRevenue - Since 6.15.1 +### logAdRevenue from v6.15.1 `logAdRevenue(data: AFAdRevenueData): void` Use this method to log your ad revenue.
From b1722dbf4fc5962fee3bd2c6893fcc68a04cff00 Mon Sep 17 00:00:00 2001 From: Dori Frost Date: Wed, 4 Dec 2024 13:06:44 +0200 Subject: [PATCH 14/16] RN_API - Changed h4 to h3 --- Docs/RN_API.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Docs/RN_API.md b/Docs/RN_API.md index 3ae7dd39..204f66bf 100644 --- a/Docs/RN_API.md +++ b/Docs/RN_API.md @@ -12,8 +12,8 @@ The list of available methods for this plugin is described below. - [APIs](#apis) - [Android and iOS APIs](#android-and-ios-apis) - [initSdk](#initsdk) - - [startSdk](#startsdk) - - [logEvent](#logevent) + - [startSdk](#startsdk) + - [logEvent](#logevent) - [setCustomerUserId](#setcustomeruserid) - [stop](#stop) - [setAppInviteOneLinkID](#setappinviteonelinkid) @@ -112,7 +112,7 @@ appsFlyer.initSdk( ``` --- -#### startSdk +### startSdk `startSdk()` In version 6.9.1 of the react-native-appslfyer SDK we added the option of splitting between the initialization stage and start stage. All you need to do is add the property manualStart: true to the init object, and later call appsFlyer.startSdk() whenever you decide. If this property is set to false or doesn’t exist, the sdk will start after calling `appsFlyer.initSdk(...)`. @@ -150,7 +150,7 @@ appsFlyer.initSdk( ``` --- -#### logEvent +### logEvent `logEvent(eventName, eventValues, success, error)` In-App Events provide insight on what is happening in your app. It is recommended to take the time and define the events you want to measure to allow you to measure ROI (Return on Investment) and LTV (Lifetime Value). From 31676edb07abde1e5b67ab6b43203f2067899652 Mon Sep 17 00:00:00 2001 From: Dori Frost Date: Sun, 15 Dec 2024 14:17:21 +0200 Subject: [PATCH 15/16] RN_API - fixed logadrevenue internal link --- Docs/RN_API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/RN_API.md b/Docs/RN_API.md index 204f66bf..03fe1623 100644 --- a/Docs/RN_API.md +++ b/Docs/RN_API.md @@ -38,7 +38,7 @@ The list of available methods for this plugin is described below. - [disableAdvertisingIdentifier](#disableadvertisingidentifier) - [enableTCFDataCollection](#enabletcfdatacollection) - [setConsentData](#setconsentdata) - - [logAdRevenue from v6.15.1](#logadrevenue-from-v6151) + - [logAdRevenue](#logadrevenue) - [Parameters](#parameters) - [Usage Example for React Native:](#usage-example-for-react-native) - [Android Only APIs](#android-only-apis) @@ -801,7 +801,7 @@ let GDPRUser = AppsFlyerConsent.forGDPRUser(true, false); appsFlyer.setConsentData(nonGDPRUser /**or**/ GDPRUser); ``` -### logAdRevenue from v6.15.1 +### logAdRevenue `logAdRevenue(data: AFAdRevenueData): void` Use this method to log your ad revenue.
From ab7adf9159b4a50b31cd002c1864b43918d42bd1 Mon Sep 17 00:00:00 2001 From: Liaz Kamper Date: Sun, 15 Dec 2024 15:39:54 +0200 Subject: [PATCH 16/16] Docs: fixed adrevenue titles --- Docs/RN_API.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Docs/RN_API.md b/Docs/RN_API.md index 03fe1623..29b8792f 100644 --- a/Docs/RN_API.md +++ b/Docs/RN_API.md @@ -39,8 +39,6 @@ The list of available methods for this plugin is described below. - [enableTCFDataCollection](#enabletcfdatacollection) - [setConsentData](#setconsentdata) - [logAdRevenue](#logadrevenue) - - [Parameters](#parameters) - - [Usage Example for React Native:](#usage-example-for-react-native) - [Android Only APIs](#android-only-apis) - [setCollectAndroidID](#setcollectandroidid) - [setCollectIMEI](#setcollectimei) @@ -808,13 +806,11 @@ Use this method to log your ad revenue.
By attributing ad revenue, app owners gain the complete view of user LTV and campaign ROI. Ad revenue is generated by displaying ads on rewarded videos, offer walls, interstitials, and banners in an app. -#### Parameters - | Param | Type | | -------------- | ---------------------------------------------------------- | | **`data`** | `AFAdRevenueData` | -#### Usage Example for React Native: +*Example:* ```javascript const adRevenueData = {