Skip to content

Not allowed to load local resource #87

@veerasatyanarayana

Description

@veerasatyanarayana

XCode 12.4
Cordova 6.0

Load image from local resource and Specifies the path to the image is local resource path

Device file path :
"file:///var/mobile/Containers/Data/Application/CE6CC1DD-2883-4FC8-932D-947242BC5020/Library/NoCloud/Driving_posture_V1_20140924_thumb.jpg "

simulator file path:
"file:///Users/mac2/Library/Developer/CoreSimulator/Devices/A78582B1-7A35-4530-B111-E464C058DCD2/data/Containers/Data/Application/ED800D6A-9E5B-42A5-99C7-56CFFB50B884/Library/NoCloud/Driving_posture_V1_20140924_thumb.jpg "

It work in simulator. But it's fail in device.

I got the below error.

Unhandled Promise Rejection: NotSupportedError: The operation is not supported.

Using the window.resolveLocalFileSystemURL() method check the file existence and it gives an Entry object corresponding to it, as long as that file exists within either the TEMPORARY or PERSISTENT filesystems.

File is existing in the path but not accessible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions