Git Product home page Git Product logo

Comments (23)

ohh2ahh avatar ohh2ahh commented on June 22, 2024 4

@babydance
Paypal's URL scheme is paypal://, simply add this string without ://.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>paypal</string>
</array>

from appavailability.

electrobabe avatar electrobabe commented on June 22, 2024 3

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.

ohh2ahh avatar ohh2ahh commented on June 22, 2024 1

@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.

jason-engage avatar jason-engage commented on June 22, 2024

thanks for the heads up

from appavailability.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

Did you edit your Info.plist?

from appavailability.

jason-engage avatar jason-engage commented on June 22, 2024

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.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

Ah, sorry. I tought that you had trouble implementing it :)

from appavailability.

J-Hong avatar J-Hong commented on June 22, 2024

Thank your help!

from appavailability.

seasun avatar seasun commented on June 22, 2024

how i do if urlschemes are from server .

from appavailability.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

@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.

nilmeme avatar nilmeme commented on June 22, 2024

Thank your help! But I used paypal , which sschemes should I add to LSApplicationQueriesSchemes.

from appavailability.

nilmeme avatar nilmeme commented on June 22, 2024

@ohh2ahh
I had add paypal scheme just like you said ,but also doesn't work

from appavailability.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

@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.

seasun avatar seasun commented on June 22, 2024

@ohh2ahh
thanks ohh2ahh! Because of this , so I can not upgrade. Server's urlschemes are third-party support.

from appavailability.

nilmeme avatar nilmeme commented on June 22, 2024

@ohh2ahh
thanks ohh2ahh! I upgrade the apypal sdk,and then everything is ok!

from appavailability.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

@babydance
I agree that Apple's privacy measures make an upgrade complicated. Hopefully third-party apps adopt the new universal links quickly.

from appavailability.

rjhilgefort avatar rjhilgefort commented on June 22, 2024

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.

ramogundogdu avatar ramogundogdu commented on June 22, 2024

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.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

@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.

rolinger avatar rolinger commented on June 22, 2024

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.

ohh2ahh avatar ohh2ahh commented on June 22, 2024

@rolinger

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.

rolinger avatar rolinger commented on June 22, 2024

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.

rolinger avatar rolinger commented on June 22, 2024

Oh, I did read that previously but misunderstood it for something else. Getting it all added now, thanks

from appavailability.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.