-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revokeAllPermissions in not work on Android #104
Comments
I noticed this as well, If i don't close the app (not only simply putting it on the background), the permission changes don't seem to reflect |
Same here - couldn't get this function to work |
This function hasn't been changed for a while and it can be due to changes from Google. So, expect these behaviours in alpha version. |
Finally I got some time to check this out! This can be related to permission delegate API not being fully compatible with RN. Can everyone verify closing and opening the app would show the changes? |
Same here - I don't get the changes applied even on app close/re-open. EDIT: I've tried again today and now I was able to revoke permissions after app close/re-open. Did a wipe emulator/clean/sync/build maybe that impacted things. EDIT x2: Tested again after regressing the set of permissions my app requests and the call works without app close/re-open. I'm highly suspicious that adding all the permissions the app needed, which is a lot of permissions, may have broken all kinds of things - including this. Initially, I was testing with just |
Please let us know if revokePermissions works now or what we should do as I have to close the entire app and reopen it for permissions to be taken away. Thank you. |
It still does persist. Have to close and restart the app. |
I followed all the settings in the document and other functions can be used normally.
But only the revokeAllPermissions function has no effect in Android 14
But in Android 13, it has normal removal permissions.
Environment:
import { initialize, requestPermission, getGrantedPermissions, readRecords, revokeAllPermissions, getSdkStatus, SdkAvailabilityStatus } from 'react-native-health-connect';
<TouchableOpacity style={styles.button} onPress={revokeAllPermissions}> <Text style={styles.text}>revokePermissions</Text> </TouchableOpacity>
The text was updated successfully, but these errors were encountered: