react-native-check-app-install icon indicating copy to clipboard operation
react-native-check-app-install copied to clipboard

Methods returning isInstalled=false even if app is installed on phone

Open himelsaha29 opened this issue 3 years ago • 6 comments

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.

himelsaha29 avatar Jun 19 '22 02:06 himelsaha29

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'), ] );

huynqjmango360 avatar Jul 21 '22 04:07 huynqjmango360

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

himelsaha29 avatar Jul 24 '22 22:07 himelsaha29

same issue with me

satyabrata45 avatar Nov 15 '22 12:11 satyabrata45

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

utkarsh-fxga avatar Mar 22 '23 06:03 utkarsh-fxga

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.

utkarsh-fxga avatar Mar 22 '23 06:03 utkarsh-fxga