Comments (23)
@babydance
Paypal's URL scheme is paypal://
, simply add this string without ://
.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>paypal</string>
</array>
from appavailability.
I had the same problem (ionic app running on iOS 9.2.1 built with XCode 7.2.1) and needed to add:
<allow-navigation href="twitter://*/*" />
<allow-navigation href="whatsapp://*/*" />
in config.xml
additionally to
<key>LSApplicationQueriesSchemes</key>
<array>
<string>twitter</string>
<string>whatsapp</string>
</array>
in platforms/ios/<appname>/<appname>-Info.plist
from appavailability.
@rolinger
Yes, since iOS 9.0 you have to add a string manually to the plist for each URL scheme you're using (see the explanation in my first comment). The string is the URL scheme without ://
. This should work:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
<string>lyft</string>
<string>fb</string>
</array>
from appavailability.
thanks for the heads up
from appavailability.
Did you edit your Info.plist?
from appavailability.
Yeah I added the code you provided to my plist (and read that link thx). Haven't tested it yet on ios9 tho.
from appavailability.
Ah, sorry. I tought that you had trouble implementing it :)
from appavailability.
Thank your help!
from appavailability.
how i do if urlschemes are from server .
from appavailability.
@seasun
I suppose you still have to include the schemes in your Info.plist when you're adding new schemes serve-side (at least if you've built your app with the iOS 9 SDK on Xcode 7).
As an alternative you could use the new Universal Links for iOS 9. Or you could build the app with the old SDK using Xcode 6 until Apple forces you to use Xcode 7. There's no need for scheme registration using Xcode 6.
from appavailability.
Thank your help! But I used paypal , which sschemes should I add to LSApplicationQueriesSchemes.
from appavailability.
@ohh2ahh
I had add paypal scheme just like you said ,but also doesn't work
from appavailability.
@babydance
- What is not working?
- What versions are you using (iOS, Xcode, AppAvailability)?
- Is there an error in Xcode or in the console?
from appavailability.
@ohh2ahh
thanks ohh2ahh! Because of this , so I can not upgrade. Server's urlschemes are third-party support.
from appavailability.
@ohh2ahh
thanks ohh2ahh! I upgrade the apypal sdk,and then everything is ok!
from appavailability.
@babydance
I agree that Apple's privacy measures make an upgrade complicated. Hopefully third-party apps adopt the new universal links quickly.
from appavailability.
For anyone working with an app where you can't know what might be linked to, I created a plugin to work around the issue. It's a simple plugin that injects a whitelist that covers commonly linked apps. Send me a PR if I forgot any.
https://github.com/rjhilgefort/cordova-plugin-queries-schemes
from appavailability.
where can i get the scheme of following ios app?: google hangouts, skype, ios mail app, my files, photo gallery and the scheme of on ios device installed apps?
from appavailability.
@ramogundogdu Unfortunately there isn't a complete register with url schemes. You can find known schemes of popular apps via a search engine.
from appavailability.
AppAvailability is working for me in Android - it opens right into the app. But on iOS its failing and thus gong to the company website. I have a hunch its the way I am calling the deeplink for iOS but can't find a better example to show me what I am doing wrong:
Example app:
if (dev==='iOS') {
scheme = "lyft://";
} else {
scheme = "me.lyft.android" ; //"lyft://" ;
}
var deepLink = "lyft:// ;
var url = "https://m.lyft.com/" ;
appAvailability.check(
scheme,
function() { // app is available
window.open(deepLink,'_system','location=no') ;
}, function () { // app is not available, open website link
window.open(url,'_system','location=no') ;
}
);
from appavailability.
Are you testing your app on an actual iOS device with Lyft installed? Which iOS version are you running? And did you add
<key>LSApplicationQueriesSchemes</key>
<array>
<string>lyft</string>
</array>
in platforms/ios/<appname>/<appname>-Info.plist
?
from appavailability.
No....I did not have that in the -Info.plist file. My app is in beta test right now and all my iOS users are experiencing the same issue on their devices. All my testers are 9.2 or 9.3 (I think).
the LSApplicationQueriesSchemes already existed so all I need to do is just add the <string>
correct? Does the string name have to match what is going to be defined as the scheme
i.e.: var scheme = 'fb://'
= <string>fb</string>
....or does it actually need to say Facebook
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
<string>lyft</string>
<string>facebook</string>
</array>
<key>LSRequiresIPhoneOS</key>
from appavailability.
Oh, I did read that previously but misunderstood it for something else. Getting it all added now, thanks
from appavailability.
Related Issues (20)
- checkAvailability crashes with empty scheme HOT 2
- White screen in IOS application.
- 你好,能给下iOS写xcode的完整运行工程???
- Viber URL Scheme
- Not working on Android for com.facebook.katana HOT 1
- TypeError: Object(__WEBPACK_IMPORTED_MODULE_1__ionic_native_core__["cordova"]) is not a function.
- Not detecting any third party applications HOT 4
- App availability not working on ios.
- Not working on iOs with AngularJS HOT 4
- [Android] [com.facebook.katana] Package manager has died HOT 5
- npm ERR! 404 'com.ohh2ahh.plugins.appavailability' is not in the npm registry.
- plugin does not work with + iOS 11 HOT 4
- iOS - WhatsApp Business scheme HOT 1
- Targeting AndroidSdk 30, appAvailability.check is broken on Android phone With Android 11 HOT 1
- Not working on Android 11 HOT 4
- With android 10.1.1 it doesn't work.
- [Solved] Android 12 not work for AppAvailability HOT 2
- Wrong return type
- Plugin not working with Ionic 5 ?
- callback always "success" even uninstalling twiter app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appavailability.