expo does not ask for permissions on apk

Hi friends i make a apk on expo and react native and before from export all work but after in APK dont work… nor when installing, nor when in app i have this in my app.JSON

{
  "expo": {
    "name": "Petra",
    "slug": "Petra",
    "privacy": "public",
    "sdkVersion": "35.0.0",
    "platforms": [
      "ios",
      "android",
      "web"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "package": "com.petra.petraseguridad",
      "versionCode": 1,
      "icon":"./assets/icon.png",
      "permissions": [
        "READ_EXTERNAL_STORAGE",
        "WRITE_EXTERNAL_STORAGE",
        "CAMERA",
        "ACCESS_FINE_LOCATION"
      ],
      "googleServicesFile": "./google-services.json",
      "config": {
        "googleMaps": {
          "apiKey": "AIzaSyDw1OkOB0-g3BqJXjxi5NFYmWQoB0FK_I0"
        }
      }
    }
  }
}

My permission functions:


    _getLocationAsync = async () => {
        let { status } = await Permissions.askAsync(Permissions.LOCATION);
        if (status !== 'granted') {
        this.setState({
            errorMessage: 'Para Acceder a la función de panico es necesario saber tu ubicación',
        });
        }else {
        let location = await Location.getCurrentPositionAsync({});
        let latitud = parseFloat( location.coords.latitude )
        let longitud = parseFloat( location.coords.longitude )
        this.setState({ latitude : latitud, longitude : longitud});
        }
    };

//and


    captureimage = async() =>{
        let { status } = await Permissions.askAsync(Permissions.CAMERA);
        if(status !== "granted"){
            Alert.alert('¡Necesitamos una foto para poder ayudarte!')
        } else {
            let result = await ImagePicker.launchCameraAsync({
                allowsEditing: false,
                base64: true
            })
            if(result !== null){
                let base64 = `data:image/jpg;base64,${result.base64}`
                this.setState({image: result.uri, imagesubir: base64})
            }
        }
    }

Dont have error message, dont have nothing, this workin in expo run

Did you solve it?

Half, i delete the array of “Permissions” but the app ask 4 all permissions and in android 6 (mi android version) dont ask in the instalation page

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.