I am integrating WKWebView
as a sub-view of another View Controller to show the conversations between two persons and able to do for normal text conversations.
But, the problem is we are not able to load the images from documents directory of the application into html using the url(file:///var/mobile/Containers/Data/Application/CFA85E42-7526-447D-81CD-4C86D3A3D3D6/Documents/2C29699C-994F-4860-8785-8015E9E4BBB9.jpeg) inside the webkit web view.
wkWebView.loadFileURL("file:///var/mobile/Containers/Bundle/Application/756EF089-4B8B-4F86-B834-9DFB8532A030/oneChat.app/www/index.html", allowingReadAccessToURL:"file:///var/mobile/Containers/Bundle/Application/0DDD77E6-2B05-4D99-AD9D-114F53B565A2/oneChat.app/")
Could anyone please help to solve this issue.