-
Notifications
You must be signed in to change notification settings - Fork 128
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 read property 'urlScheme' of undefined #2
Comments
Any update on that? I really need a solution soon. I'd love to resolve the issue myself but my Objective C/Swift knowledge is very limited. Thanks in advance. |
Sorry for getting back late Dittmar. I added linked in to the list of apps supported, now the code you pasted above should work. For apps not supported by react-native-check-app-install, you can also google for the URL scheme of the app (in the case of linked in that is linkedin://) and then do AppInstallChecker. checkURLScheme('linkedin'), note the argument to the function is the URL scheme without :// at the end. Thanks for pointing that out to me, there was an error in the README, isAppInstalledIOS should have been checkURLScheme (fixed now) |
Hi there, I finally had time to test the new version today. Unfortunately without luck on an iOS device, although it works on Android. Environment:
1. I retrieved the list of the supported apps using:
I get the following list (tested on an actual device: iPhone 6 and XCode 8.3.2)
which confirms that 2. I tried to confirm whether Linkedin is installed on an actual device (iPhone 6 with Linkedin installed)
which returns
3. Tried
which also returns
3. Tried
which also returns
NOTE 1: NOTE 2:
NOTE 3: |
Have you added linkedin:// to your info.plist? They changed some security things since iOS 9, so you need to allow your app first to check for URL. See here: #1 (comment) |
i think its good to add this info in README |
Here the react-native environment
XCode environment
Tried to look for
linkedin
url schema but I get the following error msgCannot read property 'urlScheme' of undefined
Is there any way to determine whether LinkedIn is installed or not?
The text was updated successfully, but these errors were encountered: