You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/06/25 08:26:27 UTC

[GitHub] [cordova-plugin-camera] ashilanazeer1 commented on issue #744: App crash after allowing the camera permission

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org