Skip to content

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

@ghost

Description

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)
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions