Post

Replies

Boosts

Views

Activity

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 ?
0
0
891
Nov ’22
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")
Topic: Safari & Web SubTopic: General Tags:
1
1
1.5k
Nov ’22
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 ?
Replies
0
Boosts
0
Views
891
Activity
Nov ’22
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")
Topic: Safari & Web SubTopic: General Tags:
Replies
1
Boosts
1
Views
1.5k
Activity
Nov ’22