WKWebview pdf file NOT working in iOS

i'm launching pdf file on WKWebview, it is working as expected that pdf file pages are showing in iOS Simulator but same behaviour NOT working in iOS Realtime devices (iPhone & iPad ). (empty page showing in gray colour)

Please find that attached screenshot of issue.

how to set the read permission for the WKWebviewer through the programmatically in iOS Swift Language?

i have been using PDFTron WebViewer Third party library to launch the pdf files , if i use below line of code then working as expected in iOS simulator but NOT working in iOS devices.

     WebView.configuration.preferences.setValue("TRUE", forKey: "allowFileAccessFromFileURLs")

We are having the same issue where at some point the WKWebView breaks and stops loading any PDF files.

WKWebview pdf file NOT working in iOS
 
 
Q