Skip to main content
Inspiring
November 17, 2022
Answered

Mobile Camera permissions not available in .APK even when its opted in Cordova Features

  • November 17, 2022
  • 1 reply
  • 215 views

I am using coldfusion builder 2018 to develop mobile application and 2021 coldfusion standard edition. I have developed a very simple mobile app which uses features like GPS, FILE, CONTACTS and CAMERA. 

 

When application is installed in android emulator and executes, camera doesnt work. When i see permissions, all are present except camera.

 

Please advise whats missing.

All build logs are attached with this post.

    This topic has been closed for replies.
    Correct answer Rana-Umair

    - PROBLEM SOLVED -

     

    I was able to solve it myself. The only problem that coldfusion builder was not adding permission of camera to a file called "AndroidManifest.xml" resding under folder "C:\Users\{you user}\cordova\{your project name}\platforms\android\app\src\main".

     

    The only entry you need to add into this file is: 

     <uses-permission android:name="android.permission.CAMERA" />

     

     

    1 reply

    Rana-UmairAuthorCorrect answer
    Inspiring
    November 23, 2022

    - PROBLEM SOLVED -

     

    I was able to solve it myself. The only problem that coldfusion builder was not adding permission of camera to a file called "AndroidManifest.xml" resding under folder "C:\Users\{you user}\cordova\{your project name}\platforms\android\app\src\main".

     

    The only entry you need to add into this file is: 

     <uses-permission android:name="android.permission.CAMERA" />