Thanks to visit codestin.com
Credit goes to github.com

Skip to content

utils.openFile does not open file in simulators #8410

Open
@erkanarslan

Description

@erkanarslan

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.2.2
  • Cross-platform modules: 6.0.1
  • Android Runtime: 6.2.0
  • iOS Runtime: 6.2.0
  • Plugin(s): unrelated

Describe the bug
openFile method of utils module does not preview the file in iOS simulator and Android emulator but does it in real devices.

Here is a screenshot:

Simulator Screen Shot - iPhone 8 - 2020-03-05 at 11 26 28

To Reproduce
Save an image to documents folder and try to open its path with utils.openFile

Expected behavior
Show the preview of the file.

Sample project
I can send you my whole project if you need. Give me an email address.

Additional context
Works in real device. But not in simulators.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions