expo: Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity in expo
I am trying to ask permission for write external storage but the app throws this error
Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity in expo
how to resolve it.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 16 (2 by maintainers)
Commits related to this issue
- [ios][android][sdk][docs] MediaLibrary module (#2224) — committed to expo/expo by tsapeta 6 years ago
Hi there! here is my config
I have a detached application for using RNFS module so I tried to resolve PermissionAwareActivity error with https://github.com/wix/react-native-navigation/issues/3283
So my MainActivity.java file looks like this:
I requested READ_EXTERNAL_STORAGE permission and it works
@vimalchandhru Try using expo-permissions instead of PermissionsAndroid from react-native:
Anyone who comes across this I had to change my
MainActivity.javatoI’m closing this issue because it was solved.
To sum everything up, if you’re using
PermissionAwareActivity, youractivityshould implementPermissionAwareActivity. However, we suggest usingexpo-permissions.I used your code but cant work properly, how do you run your code? Did you use expo start then expo android, or android studio for running your application?
same issue what the solution?
same issue
+1
Same Problem for me @vimalchandhru
cc: @ide @expbot