react-native-check-app-install
react-native-check-app-install copied to clipboard
Methods returning isInstalled=false even if app is installed on phone
Change of package visibility in Android 11. From Android 11, developers are required to declare in the manifest which packages are going to be accessed in the app. Simply declare app packages like below in the Android Manifest.
<queries> <package android:name="com.example.store" /> <package android:name="com.example.services" /> ... </queries>
This should be included in the package documentation.
because android check method pass wrong package name to native.
https://github.com/huynqjmango360/react-native-check-app-install
This fork had update static isAppInstalled(key) to work with bolt IOS and Android. And now we can multiple check with a promise all like this
const [facebook, twitter, instagram, pinterest, linkedin] = await Promise.all( [ AppInstalledChecker.isAppInstalled('facebook'), AppInstalledChecker.isAppInstalled('twitter'), AppInstalledChecker.isAppInstalled('instagram'), AppInstalledChecker.isAppInstalled('pinterest'), AppInstalledChecker.isAppInstalled('linkedin'), ] );
Then it only checks for the popular apps and not necessarily the ones installed on the phone. I believe the way it is done when package name is passed should be the way when it comes to passing app name only
same issue with me
That checkUrlScheme not woking even after i added the package name of host app in android manifest. Even i instlled the app it's giving me false response
If you want to get proper response use the AppInstalledChecker.checkURLScheme('package_name'). If your checking the response in mobile which have version above 10 you have to add package name in android manifest.