Publish app permission


#1

Hi, I am trying upload apk in google play and google require me camera permission but i don’t use camera in my app.

[google message]

You need to use a different version code for your APK or Android App Bundle because you already have one with version code 1.

Your APK or Android App Bundle is using permissions that require a privacy policy: (android.permission.CAMERA).


#2

Hi,

What cordova plugins are you using?
Some of them have functions to support the device camera and adds the permission petition.


#3

Ionic:

ionic (Ionic CLI) : 4.2.1 (C:\Users\aweso\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.10

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.1, browser 5.0.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 6 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Users\aweso\AppData\Local\Android\sdk)
NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10


#4

This message tells you that you have to change the version on your config.xml
Add this attribute in the widget tag:

android-versionCode="2"

What are the ‘6 other’ plugins?

Please, run the following command:

ionic cordova plugins ls

#5

cordova plugin ls
cordova-plugin-compat 1.2.0 “Compat”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-googlemaps 2.4.6 “cordova-plugin-googlemaps”
cordova-plugin-headercolor 1.0 “HeaderColor”
cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.1.19 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-sqlite-storage 2.4.0 “Cordova sqlite storage plugin”
mx.ferreyra.callnumber 0.0.2 “Cordova Call Number Plugin”


#6

I had the same problem and I solved, probably a bit late.

For native version (e.g. Android applications), the version of your app is defined by the version attribute in the widget node of the config.xml file. You need to modify the version in the widget, e.g. change 0.0.1 to 0.0.2:
<widget id="xx.cs.umu.se" version="0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

In the following link, you can find the Ionic support answer for that problem: https://ionic.zendesk.com/hc/en-us/articles/360007883833-Managing-App-Versions