triniwiz / nativescript-downloader

Apache License 2.0
32 stars 18 forks source link

NS 6 download fails on testflight/appstore test #39

Open aaayushsingh opened 4 years ago

aaayushsingh commented 4 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

I have a use case where I have to download a zip file from server and unzip it. The download works fine on Android device and emulators as well as ios device and simulators when running from CLI.

However when pushing the same ios code to testflight, the download completes, but the file then disappears. The file is about 35-40MB in size. When I check fs.exists it either says false or fails at the next step when trying to unzip saying "crc check failed"(randomly happens).

aaayushsingh commented 4 years ago

Also it throws error on testflight build when trying to use currentApp() folder for downloading files saying can't create file here. The download promise resolves when downloading to documents().

Again this works fine on simulator and can only be reproduced on Testflight build

EDIT: related zip plugin used for unzipping after download https://github.com/triniwiz/nativescript-zip

triniwiz commented 4 years ago

That's correct the current app path is not writable on a real device On Saturday, October 5, 2019, 05:13:04 AM AST, Ayush Singh notifications@github.com wrote:

Also it throws error on testflight build when trying to use currentApp() folder for downloading files saying can't create file here. can only download to documents().

Again this works fine on simulator and can only be reproduced on Testflight build

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.