After updating to cli-5.2.0 the capturePhoto function does not work on Android

  • 1
  • Question
  • Updated 4 years ago
After updating my app to cli-5.2.0 in Phonegap Build the capturePhoto function does not work anymore on Android devices.
When you make a photo, the app is not displaying it in the app and the photo is not saved on the phone.

In iOS this function still works good.

Who could help me?
Photo of Marc Bakker

Marc Bakker

  • 36 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Marc,
which plugins are you using?
Jesse
Photo of Marc Bakker

Marc Bakker

  • 36 Posts
  • 0 Reply Likes
Hi Jesse,
I use the following plugins:

Plugin Source Version Installed Latest Platforms
com.darktalker.cordova.screenshot npm 0.1.3 0.1.3 n/a android,ios,winphone
cordova-plugin-whitelist npm * 1.2.2 n/a android,ios,winphone
de.appplant.cordova.plugin.hidden-statusbar-overlay pgb 1.2.0 1.2.0 1.2.0 ios
nl.x-services.plugins.socialsharing pgb 4.3.8 4.3.8 4.3.8 android,ios,winphone
org.apache.cordova.camera pgb 0.3.6 0.3.6 0.3.6 android,ios,winphone
org.apache.cordova.console pgb 0.2.13 0.2.13 0.2.13 ios,winphone
org.apache.cordova.device pgb 0.3.0 0.3.0 0.3.0 android,ios,winphone
org.apache.cordova.device-motion pgb 0.2.11 0.2.11 0.2.11 android,ios,winphone
org.apache.cordova.device-orientation pgb 0.3.11 0.3.11 0.3.11 android,ios,winphone
org.apache.cordova.dialogs pgb 0.3.0 0.3.0 0.3.0 android,ios,winphone
org.apache.cordova.inappbrowser pgb 0.6.0 0.6.0 0.6.0 android,ios,winphone
org.apache.cordova.network-information pgb 0.2.15 0.2.15 0.2.15 android,ios,winphone
org.apache.cordova.splashscreen pgb 1.0.0 1.0.0 1.0.0 android,ios,winphone
org.devgeeks.canvas2imageplugin pgb 0.6.0 0.6.0 0.6.0 android,ios,winphone
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Remove depreciated plugins,
use
<plugin name="cordova-plugin-camera"/>
instead of old camera plugin.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Marc,
when posting code use the HTML element <code></code>.

On your plugins,
1) remove all unneeded plugins. If you are not sure, please ask.
2) you are using alot of dated plugins, you should get the latest version that will work with your code and target. If you are unsure of how to do this, ask.
3) Next try to identify with part of the code is not working. That is, which part of the camera plugin is not responding correctly.

Jesse
Photo of Marc Bakker

Marc Bakker

  • 36 Posts
  • 0 Reply Likes
When I use the code <gap:plugin name="cordova-plugin-camera" source="npm" /> into the config.xml it works
Thank you!