Page 1 of 1

Camera Service ignoring settings

Posted: Wed Jun 24, 2015 11:10 am
by Marc Hitchcock

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?


Camera Service ignoring settings

Posted: Wed Jun 24, 2015 1:45 pm
by Serhii Kulibaba

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?


Camera Service ignoring settings

Posted: Wed Jun 24, 2015 2:33 pm
by Marc Hitchcock

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


Camera Service ignoring settings

Posted: Tue Jun 30, 2015 3:47 pm
by Serhii Kulibaba

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 = {