Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'openSettingsURLString' has been renamed to 'UIApplicationOpenSettingsURLString' #401

Open
fairport opened this issue Aug 10, 2023 · 1 comment

Comments

@fairport
Copy link

This error is being thrown during a build in XCode Version 14.3 (14E222b)

'openSettingsURLString' has been renamed to 'UIApplicationOpenSettingsURLString'

Easy enough to fix but maybe it needs fixing inside the plugin

   @objc func openSettings(_ command: CDVInvokedUrlCommand) {
        guard let settingsUrl = URL(string: UIApplicationOpenSettingsURLString) else {   //replace here  
            return
        }
        if UIApplication.shared.canOpenURL(settingsUrl) {
            UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
                self.getStatus(command)
            })
        } else {
            self.sendErrorCode(command: command, error: QRScannerError.open_settings_unavailable)
        }
    }
@julienkermarec
Copy link

Ok, thanks for the fix. I create a PR ! Can you approve ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant