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

Copy/Paste functionality is not working for iOS native components.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cordova-ios@4.4.0, cordova-ios 4.5.0
    • None
    • cordova-ios
    • None
    • iOS 11 and up... Not reproducible in iOS 10.x

    Description

      With iOS11 upgrade Cordova-ios library is braking copy/paste functionality for consumer apps utilizing both web and native UI.

      Steps to reproduce :

      • Copy text to clipboard (e.g. Notes app)
      • Foreground consumer app (app must be running in background)
      • Paste clipboard text to native UI component (i.e. UITextField)

      Expected:

      • Text should be pasted on native UI component

      Actual:

      • Nothing happens

      Note: This only happens with native UI components and works fine with Web interface. Also once consumer app goes foreground, after backgrounding that app, clipboard text can never be pasted in any other iOS app with native UI.

      Investigation:

      Seems like following patch fix is causing this issue in iOS 11:
      https://github.com/apache/cordova-ios/pull/139

      Potential Fix: Since above patch has been done a while ago, removing that bit of code, doesn't seems to reintroduce original bug (i.e. https://voxpelli.com/2015/03/ios-safari-url-copy-paste-bug/)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aqeel.syed Aqeel Raza Syed
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: