react-native-file-opener
react-native-file-opener copied to clipboard
Android打开文件报exposed beyond app through Intent.getData()错误
Android打开文件报exposed beyond app through Intent.getData()错误, 由于项目中还使用了rn-fetch-blob和其他的组件,和reawct-native-file-opener中的AndroidMenifest配置provider有点冲突,合并后现在是:
AndroidMenifest.xml:
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
provider_paths.xml:
真机:306手机vizza, Android版本:7.1.1
项目环境: OS: Windows 7 Node: 10.8.0 Yarn: 1.9.4 npm: 6.2.0 Watchman: Not Found Xcode: N/A Android Studio: Not Found
Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: ^0.55.4 => 0.55.4
Have a look at the other issue here as it seems to be the same: https://github.com/huangzuizui/react-native-file-opener/issues/17