Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uputils.openFile does not open file in simulators #8410
Labels
Comments
@erkanarslan that is somehow expected as the simulator path is different for each Mac user (see here). The method openFile is checking for that path that would be on a real device so that said it is a limitation of this implementation. I wouldn't. say it is a bug as the method works on a real device but still marking this one as good-first-issue. |
@erkanarslan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):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:
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.