520
Views
3
Comments
Android.permission.READ_PHONE_STATE
Question

Hi there, 


I'm trying to upload an apk to Play Store. But we receive this error. We discovered that we need to make some changes in the AndroidManifest.xml. But in outsystems, that file does not exist. What can we do? 


Below, there is a print of the page that returns those the message. 

Thanks.

UserImage.jpg
Davidk

Henrique Oliveira wrote:

Hi there, 


I'm trying to upload an apk to Play Store. But we receive this error. We discovered that we need to make some changes in the AndroidManifest.xml. But in outsystems, that file does not exist. What can we do? 


Below, there is a print of the page that returns those the message. 

Thanks.



UserImage.jpg
Davidk

I can't read the message, but there are some changes you can make through a Plugin... in the  Extensibility Configuration property.  This is a property of the Module itself.  For example, in the Camera plugin you can do this...

{
    "plugin":
    {
        "url": "https://github.com/OutSystems/cordova-plugin-camera#2.3.1.OS",
        "variables": [{
            "name": "CAMERA_USAGE_DESCRIPTION",
            "value": "We access your camera to take pictures."
        },
        {
            "name": "PHOTOLIBRARY_USAGE_DESCRIPTION",
            "value": "We access your photo library to load or save pictures."
        }]
    }
}

Here... the "CAMERA_USAGE_DESCRIPTION" and "PHOTOLIBRARY_USAGE_DESCRIPTION" are being added to the manifest.

Also have a look at the PhoneGap Build Manifests doc section...

https://docs.phonegap.com/phonegap-build/configuring/config-file-element/


2024-04-12 15-17-49
João Miguel Santos

Davidk wrote:

I can't read the message, but there are some changes you can make through a Plugin... in the  Extensibility Configuration property.  This is a property of the Module itself.  For example, in the Camera plugin you can do this...

{
    "plugin":
    {
        "url": "https://github.com/OutSystems/cordova-plugin-camera#2.3.1.OS",
        "variables": [{
            "name": "CAMERA_USAGE_DESCRIPTION",
            "value": "We access your camera to take pictures."
        },
        {
            "name": "PHOTOLIBRARY_USAGE_DESCRIPTION",
            "value": "We access your photo library to load or save pictures."
        }]
    }
}

Here... the "CAMERA_USAGE_DESCRIPTION" and "PHOTOLIBRARY_USAGE_DESCRIPTION" are being added to the manifest.

Also have a look at the PhoneGap Build Manifests doc section...

https://docs.phonegap.com/phonegap-build/configuring/config-file-element/


I looked into the link you posted but I couldn't find information related with the permissions to access the USB port and external storage on an Android device.

Do you know what should be on the external configurations in order to have those permissions?

Best regards,

João Santos


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.