I have facing issue related to Android 11 in React Native. In my app, i am fetching WhatsApp status from /storage/emulated/0/WhatsApp/Media/.Statuses/ folder everything working find till Android 10, but in android 11 it shows nothing. Please guild me for this.
Here is my react native code to read WhatsApp status folder
var RNFS = require('react-native-fs');
RNFS.readDir(RNFS.ExternalStorageDirectoryPath + '/WhatsApp/Media/.Statuses/').then((result) => {
printLogs("Result=>", result);
result.map((item)=>{
printLogs("path===>",item.path)
})
setStatusList(result.sort((a, b) => a.mtime < b.mtime ? 1 : -1));
setRefresh(false);
}).catch((error) => {
printLogs("error=>", error);
setRefresh(false);
setStatusList([]);
})
question from:
https://stackoverflow.com/questions/65934372/android-11-not-showing-whatsapp-status-in-app-storage-emulated-0-whatsapp-medi 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…