-
-
Notifications
You must be signed in to change notification settings - Fork 50
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 imagepicker is closed and upload process is supposed to start #51
Comments
Hi @felix-idf , I tested the project on my side, however, I was unable to reproduce this behavior. I also noticed that you are using old versions of Let me know, whether the given suggestion helps. |
Hi @tsonevn , I added the latest background-http 2.5.1. I added the following points that describe my testing environment and maybe they are important and helpful:
I recorded the whole procedure from opening the imagepicker to start the upload process by selecting one image (which makes the app freezing). When I select an image and press 'Done', the app freezes and I get the log output, that I mentioned in my first post here.
I really don't understand why this seems to work for you with my provided sample code. I also tried previous versions of the background-http plugin and also with previous NativeScript versions and the imagepicker plugin.. It never worked on iOS for me. |
Hi @tsonevn , you have already closed this issue, but nonetheless I want to say that I can agree. Thanks again. |
Hi @felix-idf, While adding To fix this, you could add
Hope this helps. |
Hello,
I am trying to upload an image within a NativeScript app using
Everything seems to work fine on Android, but I have some trouble on iOS.
When I select an image from the picker and I press the 'done' Button, the image is supposed to be uploaded, but the app freezes and I only get the following log output in the Telerik AppBuilder CLI:
<Warning>: Logging crash types: 47
: assertion failed: 12H321: libxpc.dylib + 51867 [3C761F5E-F2FD-315B-895A-4054CAE2232E]: 0x7d
: CONSOLE LOG file:///app/tns_modules/tns-core-modules/globals/globals.js:119:20: Border is deprecated
: +[TNSRuntime _getCurrentStack]: unrecognized selector sent to class 0xce9670
I created a sample app, that you can access here:
https://github.com/felix-idf/ImageUploadIssue
I hope it helps you to reproduce my problems, as I am not able to give you more log infos.
In this sample app, I just use a dummy URL for the image upload, because you would need to get VPN access to run our real app.
The crash on iOS already happens when the actual upload process is supposed to begin. So when I uncomment the line ...
task = session.uploadFile(fileUri, request);
... the iOS app does not crash. In this case, the image picker is getting closed and the app just navigates to the initial page. So there seems to be no problem with the image-picker plugin.
Maybe it is just my fault all the time, but the whole image upload process seems to work fine for me on Android.
A am grateful for any advice.
Best regards,
Felix
The text was updated successfully, but these errors were encountered: