Open anupamhore opened 3 years ago
Me too, the app can't download
anyone has solved this issue. Kindly let me know
the problem you have is scoped storage, there is a solution for android 10 here: https://github.com/joltup/rn-fetch-blob/issues/700#issuecomment-732417928 but this won't work in android 11
Hi, I wanted to use RnFetchBlob to read the pdf from the device and upload it to the server. The following code works well in iOS and Android 9 and lower but in devices having Android 10 it is not working. This is the following code
I have added this in the manifest.xml file for Android
Package json file
"dependencies": { "@invertase/react-native-apple-authentication": "^1.1.2", "@react-native-community/async-storage": "^1.11.0", "@react-native-community/checkbox": "^0.4.2", "@react-native-community/clipboard": "^1.5.0", "@react-native-community/netinfo": "^5.9.5", "axios": "^0.19.2", "lottie-ios": "^3.1.8", "lottie-react-native": "^3.5.0", "moment": "^2.27.0", "react": "16.11.0", "react-native": "0.62.2", "react-native-autoheight-webview": "^1.5.1", "react-native-chart-kit": "^5.6.1", "react-native-chartjs": "^1.0.3", "react-native-crypto-js": "^1.0.0", "react-native-display-html": "^1.2.5", "react-native-document-picker": "^3.5.4", "react-native-fbsdk": "^2.0.0", "react-native-google-signin": "^2.1.1", "react-native-htmlview": "^0.16.0", "react-native-image-crop-picker": "^0.32.0", "react-native-inappbrowser-reborn": "^3.4.0", "react-native-pure-chart": "0.0.24", "react-native-router-flux": "^3.45.0", "react-native-splash-screen": "^3.2.0", "react-native-svg": "^12.1.0", "react-native-svg-charts": "^5.4.0", "react-native-svg-transformer": "^0.14.3", "react-native-switch": "^1.5.0", "react-native-table-component": "^1.2.1", "react-native-vector-icons": "^6.6.0", "react-native-webview": "^10.3.2", "react-redux": "^7.2.0", "redux": "^4.0.5", "redux-thunk": "^2.3.0", "rn-fetch-blob": "^0.12.0", "victory-native": "^35.0.1" }, "devDependencies": { "@babel/core": "^7.6.2", "@babel/runtime": "^7.6.2", "@react-native-community/eslint-config": "^0.0.5", "babel-jest": "^24.9.0", "eslint": "^6.5.1", "jest": "^24.9.0", "metro-react-native-babel-preset": "^0.58.0", "react-test-renderer": "16.11.0" }, "jest": { "preset": "react-native" } }