Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12652

stringByAddingPercentEscapesUsingEncoding is deprecated in iOS 9

    XMLWordPrintableJSON

Details

    Description

      Opening a freshly created project using Xcode and build reveals that stringByAddingPercentEscapesUsingEncoding generates deprecation warnings:

      ...CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m:81:91: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.

      Our usage

      Attachments

        Activity

          People

            kerrishotts Kerri Shotts
            kerrishotts Kerri Shotts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: