PDF File Not Launching on WKWEbView in iOS Swift - wkwebview

I have downloaded pdf file from the Webservices and downloaded into Document Directory as shown below
file:///Users/iOS/Library/Developer/CoreSimulator/Devices/C4003255-3946-4AD1-FEFG-8B4D6EE70F65/data/Containers/Data/Application/S61AZ-051B-40AB-B7A1-B7FD37A2D3C3/Documents/Sample.pdf
While launching this path on WKWebView in iOS Simulator then it is working like pdf file showing all pages but
While Launching this path in iOS Devices then im facing the issue is: "The operation couldn’t be completed. Operation not permitted".
How to fix this issue in iOS devices ?
is there any permission have to provide to devices ?
please fix this issue

Related

Android Pepper Application: E/qi.path.sdklayout: Cannot create directory – Permission denied

Since quite a while, I've been trying to run an Android app for the humanoid robot Pepper on Mac OS 10.13.6. In the past, there occurred many issues when I was trying to run a virtual device in combination with the Pepper Emulator. When I tried to run the emulator with Android SDK version 30 or 29, I was always receiving an error message that there were "NO_CERTIFICATES" to permit the installation of the app. After trying the option to generate a signed bundle in Android Studio, no change was happening.
After downgrading to Android SDK version 23, it was finally possible to run the robot viewer while installing and starting the app on the virtual tablet device without any crash occurring. However the app didn't crash at this point, the following error message appeared in the log histroy:
E/qi.path.sdklayout: Cannot create directory '"/mnt/sdcard/.config/qimessaging"' error was: boost::filesystem::create_directories: Permission denied: "/mnt/sdcard/.config"
E/qi.os: Unable to create file: ''
As soon as I call the robot to execute an animation by clicking a button on the tablet interface, the app crashes and the following lines are printed to the log:
enter image description here
I thought that this error might be implied by the first error message. Therefore I tried to update the AndroidManifest.xml with this permission tag:
enter image description here
Unfortunately, this did not change anything. So I hope to receive some help from your community. Also I would be extremly happy to receive some advice from you, #dfinn. I've read that you got around several issues to run a Pepper application on your Mac, is this correct?
Thanks a lot for all your support!
The error E/qi.path.sdklayout: Cannot create directory – Permission denied has no visible consequence.
The real issue you have here is the one described in the backtrace, java.lang.IllegalStateException: Could not execute method for android:onClick.
It looks like something is wrong with an onClick callback in your Android code.

React-Native-Camera not working on IOS but working on Android, IOS application crashes

I am new to react-native, I worked with different work-arounds but got fail nothing gone to work, when I use react native camera in my application it perfectly works on Android device or simulator but when it comes to IOS application crashes, many posts said that is because of info.plist and I added the permissions there as well by going to: ios/myproject/info.plist via myproject.xcworkspace I added the below information, the permissions works correctly when I allow my application by pressing OK it suddenly crashes with no error and when I try to reopen it, it is not able to open on IOS, simulator as well as on device.
In some examples I got the text on the screen Camera is not Authorized, while some crashes it thoroughly.
note: when it take permissions from me and I allow the permissions the application crashes in IOS only, and in some cases it gives a string on the screen by saying "camera is not authorised".
I hope somebody help me
This is the info.plist
set my paths as in the pod file:

Not able to view or save the file using device file explorer.when i try to open or save i got error as shown in image

see the image for error info
Unable to access the file from my device using android's device explorer getting a error.
I solved it!!!. Windows defender was the culprit I just turned off antivirus it's working fine now. But I won't recommend Turing off antivirus forever you can just add launcher of Android studio (studio64) in exclude list of your antivirus.

Vuzix sdk loading error cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon'

I am trying to load the SDK for Vuzix through the SDK manager in Android Studio but for some reason it will not display the downloads in 'SDK platforms' and 'SDK tools'.
In the 'SDK update sites' tab next to the Vuzix link I added there is a red exclamation point that displays " cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon' " when hovered over.
I am new to SDK's and have no idea what to do for this error. I've downloaded the android SDK's and sources for 26,25,24, and 23 thinking it could help but the error still shows up.
I still don't know what the error means but I solved it by connecting to my hotspot instead of my work network.
So my guess is it was a firewall issue or something, if anyone else has this error.
This means that the parser does not know the namespace. I tried it on Win7 and android studio 2.3.3 with the same result.
I tried it without the namespace or running android studio with oracle sdk. Both failed.
At the moment I try to run it on a virtual linux machine. Android Studio 2.3.3 will parse the addon xml file and download the files.
On Win7 I installed them manually, but they were not really integrated into to system and I stucked when I wanted to use the barcode SDK. maybe I am able some day to add simply this jar lib -
On a first look using linux seems to be the solution. But than I run into problems with the case sensitve file system. The vuzix SDK seems to need a linux system on a case insensitve file system.
*facepalm* and I am quite sure that i will fail at all. On linux a simple GUI compiles only against API 26 without errors.

Opening documents in hybrid apps

I have made a hybrid app using jquery mobile and now I want to open few docs such as pdf,pptx etc.which are already included in project on a button click. I have the liberty to open it inside as well as outside the app. Ouside the app will be feasible I guess as device can then take care of opening. I want to install app in iOS, windows and android device. Any help would be appreciated.
#user2621561, you can achieve your requirement by using Cordova file, file transfer and file opener plugin. If the file is available in server, first you got to download the file using file transfer plugin and store it in device using file plugin and then you can open the file using file opener plugin. Have tested this approach in iOS and android, it works. Not tested in windows though.

Resources