ios - Detect image selection from UIWebView -
i have made wrapper app website running in c#. runs until user tries upload image. permissions have been granted, allows select image , use camera, not prevent video (from library or camera).
how allow access images? cannot access backend modify request, looking solution can app.
things tested , failed:
1 detect urlrequest call , override ( web view functions don't called @ during image selection)
2 use uiimagepickercontrollerdelegate - selectedimage function not called, image shows in webkit icon after selection
3 looked info.plist restrictions, there doesn't seem difference between images , video end, camera , photo library permissions
4 have tried webview.stringbyevaluatingjavascript, however, looking @ source code, method called when "add image" button pressed on different page, it's url inside 1 of script tags. not sure if solution can pursued result don't know web development
for (4), part of source code in body of page :
<script src="...layoutscripts?v=d2ficvyp326vzcultpcukcjnjgj0lmg8f4xky8-vyks1"></script> <script src="...jquery.validate.additionalmethods.js"></script> <script src="...repairs.js"></script> then ...repairs.js leads url number of methods in js, none of seems have "permission" type of request device.
happy try , test possible solutions.
Comments
Post a Comment