Comments (2)
line 12 in
AppAvailability.m
crashesif ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:scheme]])
with'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance
.
Instead it should set thepluginResult
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 forcanOpenURL
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.
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)
- 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.