Closed mobifly-dev closed 2 years ago
Finally resolved. On latest iOS you have to add App Sandbox support to your app. More information here: https://developer.apple.com/documentation/security/app_sandbox
Go to your App_Resources/iOS, then put to your app.entitlements
<key>com.apple.security.app-sandbox</key>
<true/>
More entitlements that are required to use some iOS areas:
<key>com.apple.security.assets.movies.read-write</key>
<true/>
<key>com.apple.security.assets.music.read-write</key>
<true/>
<key>com.apple.security.assets.pictures.read-write</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.personal-information.addressbook</key>
<true/>
<key>com.apple.security.personal-information.photos-library</key>
<true/>
I think this should be added to official NativeScript documentation. Basically it is required now.
Issue Description
Pasting function does not work on any of TextField or TextView, SearchBar components on iOS.
This has been tested on the latest iOS 15.2 simulator and physical devices. In both cases with the same result.
If you try to copy a text and then paste into TextField in the app it returns nothing. If you try to paste in another place outside the app it works as expected.
The tooltip with "Paste" message appear but the tap action won't return the clipboard content.
I have tested the same programatically using native SDK - UIPasteboard.generalPasteboard but also it return nil instead value.
Probably it is related with iOS 15 managed pasteboard. I also figured out that the nativesctipt used UIPasteboard.general instead generalPasteboard clipboard? Maybe this is the reason.
Something wrong here.
Reproduction
Relevant log output (if applicable)
No response
Environment
Dependencies
Please accept these terms