Marc Hitchcock
Posts: 0
Joined: Fri Jun 19, 2015 2:42 pm

Camera Service ignoring settings

I have a camera service added that I am passing the settings for it via a function so that I can reuse the Camera service for taking a picture or uploading from gallery.
My problem is that it is ignoring the sourceType and defaulting to Camera regardless of the sourceType being set.
My app is shared with support if it is needed, no login/register is required (Skip using the navigation pop up). I have remote debugged the app and no error appears at all.
I have attempted to also do this using 2 camera services, 1 set to Camera and 1 set to PHOTOLIBRARY but again it is the same thing, it will ignore the setting and default to camera.
This is mission critical for me, a user needs to be able to take a picture or upload one from the gallery, if I can't do it this way, is there any way to do it?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Camera Service ignoring settings

Hello Marc,

Did you make any changes in the source view? This (http://devcenter.appery.io/tutorials/...) doc should help.

Could you send us screenshots with database mappings and events which you use for invocation these services?

Marc Hitchcock
Posts: 0
Joined: Fri Jun 19, 2015 2:42 pm

Camera Service ignoring settings

Hi Sergiy,

I have not made any changes to the source files, only uploaded files into the files/images folder.

Please see attached images for how I am invoking and running the service.
Image
Image
Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Camera Service ignoring settings

Please check value of sourceType parameter on the line 63 of Camera.js:
http://prntscr.com/7n5jsn

E.g. Add JS code:

alert(curr_options.destinationType);
alert(Camera.DestinationType[curr_options.destinationType]);

before line:
var result_options = {

Return to “Issues”