button click to call input file=“type” not working in Test Flight and app store

无人久伴 提交于 2019-12-24 23:35:32

问题


I have updated IOS SDK 11 to IOS SDK 12 and above as well as macOS 10.13.6. in previous SDK input file="type" working fine. but after update when I run the ionic app local simulator it will work but when I deployed to Test Flight or App store it wont work.

local simulator: I am able to see the input file="type" working fine.

Once same build is deployed to Test Flight as well as to app store then same code not going to work.I am not able to see the action sheet above. below is my code

HTML Code

<button ng-click="appChatCtrl.SelectFileUpload()" ></button>

JS Code

self.SelectFileUpload = function () {
//this click on working to call input file
 document.getElementById("selectedFile").click();
}

Also HTML code for

<input type="file"  id="selectedFile" onchange="angular.element(this).scope().attachFile(this.files, 'FileUpload.html')" onfocusout="angular.element(this).scope().onfocus()"/>

this is my code also in XCode project plist file I added

Privacy - Photo Library Usage Description

来源:https://stackoverflow.com/questions/55682760/button-click-to-call-input-file-type-not-working-in-test-flight-and-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!