-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios:App crashes when opening a file #242
Comments
hi @wenjianli92, thanks for raising this issue. There was some worked that was merged in recently that seems to be causing a lot of problems now. I forgot it was there when I published the patched version. I'm going to remove it from the master branch for now and release a new patch version today. |
patch 2.1.4 has been released which fixes this crash. 2.1.2 has been deprecated. Can you try updating to the latest to check the issue has been fixed for you? |
Thank you for your efforts, now I am going to update to 2.1.4 to try |
@shnist Still can't, reported the following error |
hi @wenjianli92, interesting. I could reproduce the crash in 2.0.12, but it was fixed for me in 2.0.14. Can you show me the output of |
hi @shnist, Sorry, I stopped this job for some reason ,I use ionic ,Ionic information is as follows: I am using a third-party plugin to do the function of sending and receiving files in a chat session, and using one of its APIs to perform the download. After the download is successful, it will return a path(“this.fileurl” in the code below). console.log(this.fileurl,mymimetype,'=====================fileurl,mymimetype,63'); The xcode output is as follows: The file path starts with '/var/mobile'. Is this wrong? Then how can I get the correct file path? |
This problem is caused by the wrong path: let localentry: Entry = await this.file.resolveLocalFilesystemUrl('file://'+this.fileurl); |
hi @wenjianli92, glad to hear you were able to resolve your issue. |
I am using the latest 2.1.2 version
I use ionic, ionic info:
App crashes when opening a file using the open method, at iphone 6 plus and ipad
ios:12.1
The text was updated successfully, but these errors were encountered: