Git Product home page Git Product logo

Comments (2)

gravyplaya avatar gravyplaya commented on August 30, 2024

line 12 in AppAvailability.m crashes if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:scheme]]) with 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance.
Instead it should set the pluginResult to false if there is no scheme specified.
I remember the app working before, and since this plugin has not changed, I suspect now that the iOS implementation for canOpenURL might have changed an no longer accepting NSNull.

We ran into this situation since we just forward an API sent scheme to the function and the server sent no value down (or an empty string).

Has this been tested to work? If so it would be easy to fork this repo and make that fix.

from appavailability.

pke avatar pke commented on August 30, 2024

I think we ended up checking the schema before sending it to this plugin.

One fix would be to check the schema argument on the JS side of this plugin already here and here.

I'll create a PR

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.