Hi there! Thanks for this great module!

I'm not able to taking a photo on my mobile device (ios). I'v got a node type with an image field, but nothing happens when I'm tapping on the buttons 'take photo' or 'browse'. Using the web app I'm getting the following error, but I'm thinking this is because image uploading doesn't work in web app:

VM2980:1 Uncaught ReferenceError: edit_node_edit_field_bild_und_0_value_imagefield_destination_type is not defined

The cordova camera plugin is installed. Am I missing something?

Comments

spiikr created an issue. See original summary.

tyler.frankenstein’s picture

Status: Active » Postponed (maintainer needs more info)

It is correct that the "take photo" and "browse" buttons do not work in web-app mode. I personally haven't used them with an emulator either, I've only had success when using it in phonegap mode, and on running as a compiled/installed app on an actual device. I'm open to pull requests that fix this issue in web-app mode or on emulators.

finallylea’s picture

I'm using it as installed app on a real iphone. But unfortunately the buttons doesn't work. What do you mean using it in phonegap mode? Do I have to do something additional?

tyler.frankenstein’s picture

What do you mean using it in phonegap mode?

In settings.js, setting the mode to phonegap: drupalgap.settings.mode = 'phonegap';

I'm using it as installed app on a real iphone. But unfortunately the buttons doesn't work.

I'd recommend using Safari's developer tools to inspect the application compiled onto your phone. It will let you browse the Network and Console information from your app, this is important to properly debug things when using a compiled app. It should let you know more (especially the Console tab) about the error and hopefully lead to its resolution.

The cordova camera plugin is installed. Am I missing something?

No, that should be the only plugin you need. If in doubt, install all the plugins listed here: http://docs.drupalgap.org/7/Compiling_a_Mobile_Application/Preparing_Pho...

finallylea’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Thank you so much! Setting the mode to 'phonegap' was the thing I've missed.

Seganapa’s picture

I have the same problem, only I have enabled drupalgap.settings.mode = 'phonegap'; There is a type of material with an image. A field can have only one value.

Should this work with this version? All plugins from the documentation included. When you click on the browse or take photo buttons, nothing happens (

What's wrong? Permissions need to be entered in manifest.xml?