WKWebview not showing pdf file in iOS devices.

Hi,

i'm using Swift Language to develop iOS apps. my Query is:

From the Web services API, i have download the pdf file into Document Directory (external path) in iPhone/iPad.

Downloaded PDF file NOT showing on WKWebviewer in iPhone/iPad devices due to blocking(apple permission issue) the Document Directory (external path). it is showing empty gray colour.

but Above behaviour is working fine in the iOS Simulator that pdf file is launching fine on WKWEbviewer and showing all the pages from the pdf file.

How to give the read permission to Document Directory (external path) to launch the pdf file on WKWebview in iOS Devices ?

WKWebview not showing pdf file in iOS devices.
 
 
Q