{"_id":"@bokuhe/react-native-check-app-install","_rev":"1-34cc1daa8dfdd227aeaaf2c174347ce4","name":"@bokuhe/react-native-check-app-install","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.6":{"name":"@bokuhe/react-native-check-app-install","version":"0.0.6","description":"React Native plugin for checking if apps/packages are installed on the device or not.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"peerDependencies":{"react-native":">=0.40.0","react":">=15.4.0"},"keywords":["app-install","react-native","react-component","ios","android"],"author":{"name":"RedPandaTronics LTD"},"contributors":[{"name":"bokuhe"}],"license":"MIT","nativePackage":true,"rnpm":{"android":{"sourceDir":"./android"}},"repository":{"type":"git","url":"git+https://github.com/bokuhe/react-native-check-app-install.git"},"bugs":{"url":"https://github.com/bokuhe/react-native-check-app-install/issues"},"homepage":"https://github.com/bokuhe/react-native-check-app-install#readme","_id":"@bokuhe/react-native-check-app-install@0.0.6","gitHead":"17a94f3205c98a86f56e65165e90c17a1453c865","types":"./index.d.ts","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-CDX9uBaiYwJa5fguY30CIuPS1kcqhbocI6zSEyLOwnkV5rjoMgU/aYuw6gsV/NSMoZ60T67ek7A0BdrQupiNIA==","shasum":"c4c5e1f1ebfd3fac0cbeb9260010ddc4d73c7c58","tarball":"https://registry.npmjs.org/@bokuhe/react-native-check-app-install/-/react-native-check-app-install-0.0.6.tgz","fileCount":14,"unpackedSize":21016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLMy0N1pAq7pAnE9WZrlTvKFAMj+5Q+DOOCh2m2RMvBgIgWmEmNs/zEenSA3IloaAB0J+dfZ9Vy9w7zkN14eiskiU="}]},"_npmUser":{"name":"bokuhe","email":"bokuhe@gmail.com"},"directories":{},"maintainers":[{"name":"bokuhe","email":"bokuhe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-check-app-install_0.0.6_1704535900670_0.4548563111974444"},"_hasShrinkwrap":false},"0.1.0":{"name":"@bokuhe/react-native-check-app-install","version":"0.1.0","description":"React Native plugin for checking if apps/packages are installed on the device or not.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"peerDependencies":{"react-native":">=0.40.0","react":">=15.4.0"},"keywords":["app-install","react-native","react-component","ios","android"],"author":{"name":"RedPandaTronics LTD"},"contributors":[{"name":"bokuhe"}],"license":"MIT","nativePackage":true,"rnpm":{"android":{"sourceDir":"./android"}},"repository":{"type":"git","url":"git+https://github.com/bokuhe/react-native-check-app-install.git"},"bugs":{"url":"https://github.com/bokuhe/react-native-check-app-install/issues"},"homepage":"https://github.com/bokuhe/react-native-check-app-install#readme","_id":"@bokuhe/react-native-check-app-install@0.1.0","gitHead":"40d1e50cf7162626ac9fb84275cea1c5c1a03ba4","types":"./index.d.ts","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-+vKnZCUIhPkEA3UZj1n6nvBgGgZze1L1dLtRg2hKO7B/cH2KS0G1CRJhJ58sR5YNmv89DPircN2xlu4WasbdZQ==","shasum":"8b3b0adb99faa1dacf20beb8aa2d8ac03d6200b8","tarball":"https://registry.npmjs.org/@bokuhe/react-native-check-app-install/-/react-native-check-app-install-0.1.0.tgz","fileCount":14,"unpackedSize":21033,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9ffXD+tr7+yAoSy/pqjAJEdNG+2CIpqxrRjxx+LMVmAIhAORPGu/kT+EOIVOYCw9NeSAbyox8mcG0kFMK6ZxF/d+u"}]},"_npmUser":{"name":"bokuhe","email":"bokuhe@gmail.com"},"directories":{},"maintainers":[{"name":"bokuhe","email":"bokuhe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-check-app-install_0.1.0_1704536497674_0.6090814040136299"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-06T10:11:40.565Z","0.0.6":"2024-01-06T10:11:40.852Z","modified":"2024-01-06T10:21:37.996Z","0.1.0":"2024-01-06T10:21:37.845Z"},"maintainers":[{"name":"bokuhe","email":"bokuhe@gmail.com"}],"description":"React Native plugin for checking if apps/packages are installed on the device or not.","homepage":"https://github.com/bokuhe/react-native-check-app-install#readme","keywords":["app-install","react-native","react-component","ios","android"],"repository":{"type":"git","url":"git+https://github.com/bokuhe/react-native-check-app-install.git"},"contributors":[{"name":"bokuhe"}],"author":{"name":"RedPandaTronics LTD"},"bugs":{"url":"https://github.com/bokuhe/react-native-check-app-install/issues"},"license":"MIT","readme":"# react-native-check-app-install\n\nThis package is a fork of [redpandatronicsuk/react-native-check-app-install](https://github.com/redpandatronicsuk/react-native-check-app-install), with added enhancements for build configuration and TypeScript support.\n\n## Installation\n```\nnpm i --save @bokuhe/react-native-check-app-install\n```\n\nor\n\n```\nyarn add @bokuhe/react-native-check-app-install\n```\n\n## Usage\n\n### Android 11 (API 30) and above\n\nFrom Android 11 onwards, accessing the list of other installed apps is not allowed by default. Therefore, you must add the list of apps you want to query to the manifest in advance.\n\n```xml\n<manifest ...>\n    ...\n    <queries>\n        <package android:name=\"PACKAGE NAME HERE\" />\n    </queries>\n    ...\n```\n\nAlternatively, if you need to use information from all apps, you must add the following:\n\n```xml\n<manifest ... >\n    ...\n    <uses-permission android:name=\"android.permission.QUERY_ALL_PACKAGES\"\n        tools:ignore=\"QueryAllPackagesPermission\" />\n    ...\n```\n\n\n\nCheck out the example app in the [example](https://github.com/redpandatronicsuk/react-native-check-app-install/tree/master/example) folder.\n\n```javascript\nimport { AppInstalledChecker, CheckPackageInstallation } from '@bokuhe/react-native-check-app-install';\n\n// To check by app name:\nAppInstalledChecker\n    .isAppInstalled('whatsapp')\n    .then((isInstalled) => {\n        // isInstalled is true if the app is installed or false if not\n    });\n\n// To check using URL (works on iOS and Android):\nAppInstalledChecker\n    .checkURLScheme('whatsapp') // omit the :// suffix\n    .then((isInstalled) => {\n        // isInstalled is true if the app is installed or false if not\n    })\n\n// To check using package name (Android only):\nAppInstalledChecker\n    .isAppInstalledAndroid('com.whatsapp') \n    .then((isInstalled) => {\n        // isInstalled is true if the app is installed or false if not\n    });\n```\nYou can retrieve the list of supported app names by calling `AppInstalledChecker.getAppList()` or check in [app-list.js](https://github.com/redpandatronicsuk/react-native-check-app-install/blob/master/app-list.js). If your app is not in the list, you will have to find out the URL scheme or package name and use either `isAppInstalledIOS(url)` or `isAppInstalledAndroid(pacakge-name)`.\n\nAndroid package names can be found on the [Google PlayStore](https://play.google.com/store/search). For example, the URL for the Twitter app is *https://play.google.com/store/apps/details?id=com.twitter.android* the package name is the value of the id query parameter, i.e. **com.twitter.android**.\n\niOS URL schemes can be found by googling or checking this unofficial registry: [http://handleopenurl.com](http://handleopenurl.com) (site seems down at the moment)\n","readmeFilename":"README.md"}