Closed pke closed 5 years ago
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.
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).