You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/06 00:58:00 UTC

[jira] [Commented] (CB-13510) Copy/Paste functionality is not working for iOS native components.

    [ https://issues.apache.org/jira/browse/CB-13510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16279472#comment-16279472 ] 

ASF GitHub Bot commented on CB-13510:
-------------------------------------

ssraza opened a new pull request #352: CB-13510: (iOS) Removed clipboard workaround, which was braking copy/paste functional iOS 11
URL: https://github.com/apache/cordova-ios/pull/352
 
 
   ### Platforms affected
   iOS
   
   ### What does this PR do?
   Removed `[pasteboard setValue:string forPasteboardType:@"public.text"]` clipboard workaround, which is not need in iOS 11, but breaking copy/past functionality from outside the app (i.e notes/safari) into (Cordova) consumer app using native UI as well.
   
   ### What testing has been done on this change?
   Manually tested copy/pastes functionality for both cordova (web UI) components as well as with native UI in a container app.
   
   ### Checklist
   - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database. [CB-13510](https://issues.apache.org/jira/browse/CB-13510)
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
   - [ ] Added automated test coverage as appropriate for this change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Copy/Paste functionality is not working for iOS native components.
> ------------------------------------------------------------------
>
>                 Key: CB-13510
>                 URL: https://issues.apache.org/jira/browse/CB-13510
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>    Affects Versions: cordova-ios@4.4.0, cordova-ios 4.5.0
>         Environment: iOS 11 and up... Not reproducible in iOS 10.x 
>            Reporter: Aqeel Raza Syed
>            Assignee: Suraj Pindoria
>
> 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/)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org