Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to check app is installed or not #1

Open
ignivanishant opened this issue Apr 25, 2017 · 7 comments
Open

unable to check app is installed or not #1

ignivanishant opened this issue Apr 25, 2017 · 7 comments

Comments

@ignivanishant
Copy link

ignivanishant commented Apr 25, 2017

i use this package my code is
import { AppInstalledChecker, CheckPackageInstallation } from 'react-native-check-app-install';

and inside render() i just put

AppInstalledChecker
.isAppInstalledIOS('facebook') // omit the :// suffix
.then((isInstalled) => {
console.log("isInstalled ", isInstalled);
// isInstalled is true if the app is installed or false if not
})

it always return false weather app is installed or not as you can see in code i am checking for facebook

@ignivanishant ignivanishant changed the title unable to check app is installed or not on device unable to check app is installed or not Apr 25, 2017
@redpandatronicsuk
Copy link
Owner

I think on iOS, since version 9, you have to whitelist URL schemes before you can use them. This plugin uses URL schemes to check if apps are installed. Can you add fb to the array LSApplicationQueriesSchemes in Info.plist in your iOS project. Similar to this:
screen shot 2017-04-25 at 13 45 47

Please let me know if that fixes it so I can update the installation instructions.

@DanGDroid
Copy link

same here i added the urlScheme for googlemaps to info.plist but return false allways

@treemore
Copy link

@DanGDroid in think you must restart the app in the xcode.

@redpandatronicsuk
Copy link
Owner

@DanGDroid did treemore's fix work for you? Can I close this issue?

@FabioBachi
Copy link

@redpandatronicsuk 's solution fixes the issue. @DanGDroid just re-run the app and it'll work!

@developweb10
Copy link

i added the urlScheme for Instagram, Facebook and restart the app in the Xcode....But it still return false weather app is installed or not.

@DanGDroid
Copy link

i ended up using Linking.canOpenURL(appUrl.urlScheme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants