No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Where To Enter Capacitor Permissions For Android

    CLI
    2
    6
    1798
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      omgwalt last edited by

      My app is now getting a pop-up on Android when a user installs that it didn’t get before. It’s a permission request from the user for: Location, Photos/Media/Files, Camera, and Microphone. The problem is that my app really doesn’t require all of these permissions. It doesn’t use the camera or microphone at all. Location isn’t tracked in any way. And the only way I can think of Photos/Media/Files being involved is that the app plays mp3 and video files downloaded from the web.

      How can I turn off the permissions for the unneeded features in Android devices?

      And how can I determine whether I need to have the user approve Photos/Media/Files permission?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @omgwalt last edited by

        @omgwalt

        To get better answers, you should really ask these questions to the Capacitor community.

        O 1 Reply Last reply Reply Quote 0
        • O
          omgwalt @dobbel last edited by

          @dobbel Correct me if I’m wrong, but doesn’t Quasar handle the entry of settings differently from the way Capacitor itself normally does? That was my impression.

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @omgwalt last edited by dobbel

            @omgwalt

            I am more of a Cordova guy here.

            In Quasar you can set some settings like package name, back button behavior. For the most part you’ll have do the specific config(install plugins, set permissions explanations for IOS) directly in the generated cordova/capacitor project folders. Quasar only controls the www folder of an Cordova project ( and probably Capacitor).

            See here for the Capacitor specific doc:
            https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor#capacitor.config.json

            1 Reply Last reply Reply Quote 0
            • O
              omgwalt last edited by

              @dobbel

              I can see in src-capacitor > android > app > src > main > AndroidManifest.xml that the permissions were set there automatically after I built the app.

              I guess I have to assume that is the default location, although it seems strange to me given that this file was automatically built after I ran the build command.

              I would have thought there was a setting in quasar.conf.js or in package.json or something like that.

              dobbel 1 Reply Last reply Reply Quote 0
              • dobbel
                dobbel @omgwalt last edited by

                @omgwalt

                AndroidManifest.xml

                That seems the place to do the permissions in Capacitor see:
                https://capacitorjs.com/docs/android/configuration

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post