ashilanazeer1 commented on issue #744: URL: https://github.com/apache/cordova-plugin-camera/issues/744#issuecomment-1166226946
> i encountered the identical problem as @Mohammad-Toufiq-Pathan and @toufiqpathan . I'm using 6.0.0 for camera plugin and 10.1.1 for cordova-android. > > camera works for debug builds, but when i switch the build type from debug to release in android studio, the app crashes showing the exact same log as @toufiqpathan . > > any suggestions on a temporary workaround? @erisu @breautek > @thierry1129 I already fixed it. > > in the file src/android/CameraLauncher.java > > Change: `this.applicationId = (String) BuildHelper.getBuildConfigValue(cordova.getActivity(), "APPLICATION_ID");` To: `this.applicationId = cordova.getContext().getPackageName();` > > That did the trick for me. Hope it will help someone else! in this method we have to replace this line of code after downloading the plugin when we do the build right?. Is there any version of camera-plugin that works with ionic 3 without crashing camera -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
