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

Cannot check App installed or not #20

Open
tonifirnandes opened this issue Mar 11, 2019 · 2 comments
Open

Cannot check App installed or not #20

tonifirnandes opened this issue Mar 11, 2019 · 2 comments

Comments

@tonifirnandes
Copy link

Hello guys, please help us.

Environtment:
"react-native": "0.54.2",
"react-native-check-app-install": "^0.0.5",

Return of isAppInstalled always false even the Whatapp app already installed.
When we log, we got error :

{ [TypeError: undefined is not an object (evaluating '_android2.default.isPackageInstalled')]

Best regards,

@SanjanaTailor
Copy link

same here I tried with Instagram app also where it gives always false value.
let instaURL = 'https://www.instagram.com';
// To check using URL (works on iOS and Android):
AppInstalledChecker.checkURLScheme('instagram') // omit the :// suffix
.then(isInstalled => {
console.log('Installed', isInstalled);
// isInstalled is true if the app is installed or false if not
if (isInstalled) {
openLinkingURL(instaURL);
} else {
openLinkingURL(instaURL);
}
});
}

@aliraza944
Copy link

I am facing the same issue here. The com.whatsapp is not working even though the whatsapp is installed on the device and the isIntalled always remain false.

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

3 participants