dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 129 forks source link

Trying to fix a build error on XCode 8.3.2 targeting iOS 9.x. #189

Closed ucswift closed 6 years ago

ucswift commented 6 years ago

PR Type

What kind of change does this PR introduce?

PR Checklist

For bug fixes / features, please check if your PR fulfills the following requirements:

What is the purpose of this PR?

Using this plugin if you're compiling with older versions of xcode targeting older iOS versions your compile will fail with an error message like: /Plugins/uk.co.workingedge.phonegap.plugin.launchnavigator/LaunchNavigator.m:1537:18: no visible @interface for 'UIApplication' declares the selector 'openURL:options:completionHandler:' [application openURL:URL options:@{}

Does this PR introduce a breaking change?

Other information

Opening this PR to get feedback on the change, not very elegant but appears it may solve the compiling issue. CI testing is limited due to not being able to pull it from the registry. The issue seems to be the selector surface for openURL.