I want to ask if the app.json config loaded in debug mode.
I specify my android as so:
"android": {
"versionCode": 6,
"package": "-=-=-=-=-=-=-=-=-=-",
"config" : {
"googleMaps" : {
"apiKey": "-=-=-=-=-=-=-=-=-=-"
}
},
"permissions" : [
"CAMERA",
"ACCESS_FINE_LOCATION",
"READ_EXTERNAL_STORAGE",
"ACCESS_COARSE_LOCATION",
"com.htc.launcher.permission.READ_SETTINGS",
"MANAGE_DOCUMENTS",
"com.sonyericsson.home.permission.BROADCAST_BADGE",
"WRITE_EXTERNAL_STORAGE"
]
}
But notice that I kept having permission error:
[Error: Could not get photos: need READ_EXTERNAL_STORAGE permission]
I also tried:
const { Permissions } = Expo;
const { status } = await Permissions.getAsync('READ_EXTERNAL_STORAGE');
if (status !== 'granted') {
await Permissions.askAsync("READ_EXTERNAL_STORAGE");
if (status === 'granted') {
return true;
} else {
throw new Error('Location permission not granted');
}
}
but I am getting:
Error: Unrecognized permission READ_EXTERNAL_STORAGE
Do I need to detach my expo for this?
Cheers