This is a migrated thread and some comments may be shown as answers.

Getpicture crashes IOS

2 Answers 65 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard
Top achievements
Rank 1
Richard asked on 07 Apr 2014, 05:28 PM
Whenever I try to use the camera plugin app Builder crashes. Not every time but like 3 out of 4 times.

When it crashes it crashes as soon as I hit "use image". I have tried file_uri data_uri, etc.. tried going from 100% quality all the way down to 1. No options I change seem to make a difference.

I get the same results when I switch to using the capture plugin. Any ideas are welcome.  Just doesn't get past this point. 

1.navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
2.    quality: 20,
3.    saveToPhotoAlbum: true,
4.    sourceType: Camera.PictureSourceType.CAMERA,
5.    destinationType: Camera.DestinationType.FILE_URI });

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 07 Apr 2014, 05:36 PM
Just tested it on an Android 4.3 tablet and it worked perfectly. 
0
Zdravko
Telerik team
answered on 10 Apr 2014, 12:54 PM
Hello Richard,

Using our sample app and your code I was unable to reproduce your issue. The app works flawlessly even with "quality" set to 100 which is not recommended.

Would you verify that you have enough storage space because according to Cordova documentation the photos are saved in the application's temporary directory?

We are aware of memory issues using the Camera plugin on some devices, but not with the Capture plugin.
Have you tried with another iOS device? I used iPhone 5  iOS 7.1 for the test.

You can debug your app on device and track for any possible culprits.

If you still need an assistance consider opening a private ticket including your app name so we can try it locally.
Thanks.


Regards,
Zdravko
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
AppBuilder companion app
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or