{"_id":"@appsflyer-test-2modes/main","_rev":"2-d241945ae4aa0da1caee7910ebea1548","name":"@appsflyer-test-2modes/main","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@appsflyer-test-2modes/main","version":"1.0.0","description":"<img src=\"https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg\"  width=\"450\">","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","repository":{"type":"git","url":"https://github.com/amit-kremer93/appsflyer-test-2modes/tree/master/main"},"_id":"@appsflyer-test-2modes/main@1.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-XB2lWwF6o2ILmIP56gEok/4Tq4SuK4Upl1uNxi48qzfET1oKtaQlq6/uUuAwnO9/Agd7EiNjud0RP7xIkBxvIg==","shasum":"6937a08b73ac84817c4d4c25dc625ca212db0e04","tarball":"https://registry.npmjs.org/@appsflyer-test-2modes/main/-/main-1.0.0.tgz","fileCount":37,"unpackedSize":220756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr1EKCRA9TVsSAnZWagAAQpYP/iDgg0J/RaGjRSpg+Jr/\nl5Iqy21Hl1pFI49UcbjasVXWD/kVbB2poz89zRcOV4vZsZAq13vGMKgpF66H\nldd04zk47eg7dfksuEMD4+jSZGAgkKJZUmtRBYJ30w7/38l1N7Jhze8nXjQM\nl+VnLofr1oDwBnPZvshGdsp5xlvDeqCJjRvUdb8YhrkzI8NvvdN3zQx6vz+s\nCxK5pAVqAkE6kx2/X9t3P12lYC/Lr0FopH9cNzBmVSzkvlf7IuHgneVofY/i\nT8WZ+RHjDXNXZwa6ulEx8vHbk2gUzJM2ZTR/F9ovtiKFmJnumtM6NHdhKsYb\n4EOaGWx6+Yg9+2vveQG6583B6T3ylJDt8rmJq307VSFcwZ7yz2/coXKJ72dI\n86eFsahUzpZiS+B6FHjJbi8XsUp5wHaxzjcSekUKYk2fMZKc5rFqf3E12HTt\nUO0g+GYFaBchgnY4UdQ+PJCjs0m0sftlwTUM7Ka0E8IqaX0NdPxEEdY2Ev8a\nfNstZgfAdMShUEqrqWtBMCZ4g1TSgNp5UqvxN0+9iu9niOI2VpvQbetPm4JQ\nvqFekaBjn52rsN2mPj9lCL/aq10lprHVy3j/QEyOcTK/oUz15JJvex9jZvOC\nx3RYiR4BU8nMtdhK1dSuNSdWEce4Y1DeccE+BN3tDoMHbsMRQhuJdKGfrEY7\ncsIW\r\n=Wray\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlgg8xEWGTrFD9FPlEKuHvFGDjT8SqJUGnCtPu2S7clwIhAIu0a2FWK6MxXDJZui/9Y2SR1kX2bqD0rypbeh9HfIsd"}]},"_npmUser":{"name":"amit-kremer93","email":"amit.kremer@appsflyer.com"},"directories":{},"maintainers":[{"name":"amit-kremer93","email":"amit.kremer@appsflyer.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/main_1.0.0_1622102281910_0.7971047833148699"},"_hasShrinkwrap":false},"1.0.1":{"name":"@appsflyer-test-2modes/main","version":"1.0.1","description":"<img src=\"https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg\"  width=\"450\">","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","repository":{"type":"git","url":"https://github.com/amit-kremer93/appsflyer-test-2modes/tree/master/main"},"homepage":"https://github.com/amit-kremer93/appsflyer-test-2modes/tree/master/main","_id":"@appsflyer-test-2modes/main@1.0.1","_nodeVersion":"15.12.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-k92HANVShOPEmCO+9Slt2RD6yeLb/EuYOnwiyZUrMXkaFXB3J73x4LX7l1hTvPgp+Hs6shVBTX/9z5N5rnae0A==","shasum":"582da72b8a09b18624a10b4cafd57560f7fd2619","tarball":"https://registry.npmjs.org/@appsflyer-test-2modes/main/-/main-1.0.1.tgz","fileCount":37,"unpackedSize":220859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr1y1CRA9TVsSAnZWagAAt7EP/0SHgpjXKDmAVIy2fpoh\nSHgywfsLKHvLgpnOtgyHIj35IwejZLwXooaSkGwzez2ivUqvuWGWe05cW1Hb\nJf6E2GKxOE8C2HiNqfmUwSBJVsrsmmyV8zIF6cJjvmc+9Nq/o5mK4MgWp36S\nfNWAlnyJR2BdakZjarmls1HQ3Msnx9WpX6bqE8Gb4ImufmQjJGRsbO0i1v91\nFxgQKs8EQKWxReWTqgFk6IRsStZ7g1VIHsvfzvQZ/sU3RnW/Q1lbZrFtDYWa\nBMUMp1wt7UQdQcQ4+2pRZFYjLpKpKpM1souXfiYSGHMaU94YcNMr2HUf/18U\nHXkS+CdVnzj3giJTL6qI1H0qV3AEHtOby1Bx36Eqh8TkAimn4n/BQ4XWVUHF\nZoNeZXeEYuRCG3/ULiyGRc/Hvvtmh7dvHY9KgmI3G8Dpv22RMCAq7czQ+9m9\nVwYbCkPqD0V/K5nwexSW/tt5uLaCaewQ5HxI/U5XnKwkIwFi7zS+3YjeqHkD\nkss0PghdMpRMlFFjeMUbbYbx0iasPqgFLpI+T2L+DtrOTXif+wI7wxfDESAt\n/BkQ9SRb1gADnhXF/f2Sj8ATUGg2wiJW2fHkqnG8R7S8PsRADK4pGGFhgAdj\njE/hL6701y7R3dAcKs9b2O8HmsokFcNP4DpKVijMsk3NKlJXowg208bGTojA\nWTJR\r\n=W7Aj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1tcbh5FPyFLB8ptTFCAeodLpxaq4USbYTMRDE8GSoCAiBOeZu3wXPOXJmvS0rYojLQFstdcMAXvK+PrWVxuuxD+Q=="}]},"_npmUser":{"name":"amit-kremer93","email":"amit.kremer@appsflyer.com"},"directories":{},"maintainers":[{"name":"amit-kremer93","email":"amit.kremer@appsflyer.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/main_1.0.1_1622105268640_0.002520181389966236"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-27T07:58:01.560Z","1.0.0":"2021-05-27T07:58:02.084Z","modified":"2022-04-04T15:04:41.329Z","1.0.1":"2021-05-27T08:47:48.872Z"},"maintainers":[{"name":"amit-kremer93","email":"amit.kremer@appsflyer.com"}],"description":"<img src=\"https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg\"  width=\"450\">","repository":{"type":"git","url":"https://github.com/amit-kremer93/appsflyer-test-2modes/tree/master/main"},"license":"ISC","readme":"\n<img src=\"https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg\"  width=\"450\">\n\n# React Native AppsFlyer plugin for Android and iOS.\n\n🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com\n\n*When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.*\n\n[![npm version](https://badge.fury.io/js/react-native-appsflyer.svg)](https://badge.fury.io/js/react-native-appsflyer) \n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) \n[![Downloads](https://img.shields.io/npm/dm/react-native-appsflyer.svg)](https://www.npmjs.com/package/react-native-appsflyer)\n## Table of content\n\n- [Breaking changes](#breaking-changes)\n- [Adding the SDK to your project](#installation)\n- [Add or Remove Strict mode for App-kids](#appKids)\n- [Initializing the SDK](#init-sdk)\n- [Guides](#guides)\n- [API](#api) \n  \n### <a id=\"plugin-build-for\"> This plugin is built for\n\n- iOS AppsFlyerSDK **v6.3.0**\n- Android AppsFlyerSDK **v6.3.0**\n\n## <a id=\"breaking-changes\"> ❗ Breaking Changes\n\n- From version `6.3.0`, we use `xcframework` for iOS platform, then you need to use cocoapods version >= 1.10\n\n- From version `6.2.30`, `logCrossPromotionAndOpenStore`  api will register as `af_cross_promotion` instead of `af_app_invites` in your dashboard.<br>\nClick on a link that was generated using `generateInviteLink` api will be register as `af_app_invites`.\n\n- We have renamed the following APIs:\n\n| Old API                       | New API                       |\n| ------------------------------|-------------------------------|\n| trackEvent                    | logEvent                      |\n| trackLocation                 | logLocation                   |\n| stopTracking                  | stop                          |\n| trackCrossPromotionImpression | logCrossPromotionImpression   |\n| trackAndOpenStore             | logCrossPromotionAndOpenStore |\n| setDeviceTrackingDisabled     | anonymizeUser                 |\n| AppsFlyerTracker    | AppsFlyerLib                 |\n\nAnd removed the following ones:\n\n- trackAppLaunch -> no longer needed. See new init guide\n- sendDeepLinkData -> no longer needed. See new init guide\n- enableUninstallTracking -> no longer needed. See new uninstall measurement guide\n\nIf you have used 1 of the removed APIs, please check the integration guide for the updated instructions\n\n## <a id=\"installation\"> 📲 Adding the SDK to your project\n\n**Production** version from npm: \n```\n$ npm install react-native-appsflyer --save\n```\n\nThen run the following:\n\n*iOS*\n```\n$ cd ios && pod install\n$ react-native run-ios\n```\n\n*Android*\n```\n$ react-native run-android\n```\n\n> Starting from RN [v0.60](https://facebook.github.io/react-native/blog/2019/07/03/version-60), and react-native-appsflyer `v1.4.7` the plugin uses [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md). <br/>\nIf your app does not support autolinking, check out the Installation Guide [here](./Docs/Installation.md).\n\n## <a id=\"appKids\"> 👨‍👩‍👧‍👦 Add or Remove Strict mode for App-kids\n\nStarting from version **6.1.10** iOS SDK comes in two variants: **Strict** mode and **Regular** mode. Please read more [here](https://support.appsflyer.com/hc/en-us/articles/207032066#integration-strict-mode-sdk)\n\n***Change to Strict mode***<br>\nAfter you [installed](#installation) the AppsFlyer plugin, go to the `react-native-appsflyer` folder inside the `node_modules` folder:\n```\ncd node_modules/react-native-appsflyer\n```\nRun the script `changeMode.sh strict`\n```\n./changeMode.sh strict\n```\nGo to the `ios` folder in your `root` project\n```\ncd ../../ios\n```\nRun `pod install`\n\n***Change to Regular mode***<br>\nGo to the `react-native-appsflyer` folder inside the `node_modules` folder:\n```\ncd node_modules/react-native-appsflyer\n```\nRun the script `changeMode.sh` (WITHOUT `strict`)\n```\n./changeMode.sh\n```\nGo to the `ios` folder in your `root` project\n```\ncd ../../ios\n```\nRun `pod install`\n\n## <a id=\"init-sdk\"> 🚀 Initializing the SDK\n\nInitialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) and updates.<br>\nNOTE! for iOS 14.5, we use `timeToWaitForATTUserAuthorization` parameter. Please read more [here](https://support.appsflyer.com/hc/en-us/articles/207032066-iOS-SDK-V6-X-integration-guide-for-developers#integration-33-configuring-app-tracking-transparency-att-support)\n\n```javascript\nimport React, {Component} from 'react';\nimport {Platform, StyleSheet, Text, View} from 'react-native';\nimport appsFlyer from 'react-native-appsflyer';\n\nappsFlyer.initSdk(\n  {\n    devKey: 'K2***********99',\n    isDebug: false,\n    appId: '41*****44',\n    onInstallConversionDataListener: true, //Optional\n    onDeepLinkListener: true, //Optional\n    timeToWaitForATTUserAuthorization: 10 //for iOS 14.5\n  },\n  (result) => {\n    console.log(result);\n  },\n  (error) => {\n    console.error(error);\n  }\n);\n```\n\n| Setting  | Description   |\n| -------- | ------------- |\n| devKey   | Your application [devKey](https://support.appsflyer.com/hc/en-us/articles/211719806-Global-app-settings-#sdk-dev-key) provided by AppsFlyer (required)  |\n| appId      | Your iTunes [application ID](https://support.appsflyer.com/hc/en-us/articles/207377436-Adding-a-new-app#available-in-the-app-store-google-play-store-windows-phone-store)  (iOS only)  |\n| isDebug    | Debug mode - set to `true` for testing only  |\n|onInstallConversionDataListener| Set listener for SDK init response (Optional. default=true) |\n|onDeepLinkListener| Set listener for DDL response (Optional. default=false) |\n|timeToWaitForATTUserAuthorization| Time for the sdk to wait before launch. please read more [Here](https://support.appsflyer.com/hc/en-us/articles/207032066-iOS-SDK-V6-X-integration-guide-for-developers#additional-apis-configuring-app-tracking-transparency-att-support) |\n\n\n ## <a id=\"guides\"> 📖 Guides\n\nGreat installation and setup guides can be viewed [here](/Docs/Guides.md).\n- [init SDK Guide](/Docs/Guides.md#init-sdk)\n- [Deeplinking Guide](/Docs/Guides.md#deeplinking)\n- [Uninstall Guide](/Docs/Guides.md#measure-app-uninstalls)\n\n\n\n## <a id=\"api\"> 📑 API\n  \nSee the full [API](/Docs/API.md) available for this plugin.\n\n","readmeFilename":"README.md","homepage":"https://github.com/amit-kremer93/appsflyer-test-2modes/tree/master/main"}