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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception occurred while executing exported method askAsync on module ExpoPermissions: null #5548
Comments
Hi @janicduplessis, which version of |
@lukmccall I get a similar error. Am using:
I was also asking for Android notification permissions which are a normal category permission. I've changed my code to something like: if (Platform.OS === 'ios')
await Permissions.askAsync(Permissions.NOTIFICATIONS) |
@lukmccall any idea if there's a possible workaround or fix for this? We're having the same issue and it's blocking our release since we updated Expo. My reproduction steps (for both production and development):
Result: nothing happens for the user, and the console shows the error mentioned in the issue. |
My working solution is to keep a list of dangerous Android permissions, and only prompt an Android user for those permissions, ignoring normal permissions. Notifications is a normal permission so it is set automatically and I don't think expo-permissions is able to prompt the user to reset it if they have manually disabled it like you have done.
|
I'm having the same problem and I only use
|
Same here. Does anyone have a solution for this? |
any solution ? |
Hi @yasahmed. Could you provide logs from your device? Or provide more details about your environment, android version? It'll be nice if you also create a simple demo that can reproduce this bug. I've looked at this bug in the past, but unfortunately, I couldn't reproduce it. |
Hi @lukmccall
Leads to Strangely calling
Setup (Bare Project):
Tested on a real Android 9 device with disabled notifications |
Hi @Speedy1991, the bug which you found isn't connected with this issue. So, I've created a separate issue for this (see #8909). |
Same here:
I can't reproduce it, I get that errors in Sentry.
|
Hi @RodolfoGS, your problem should be fixed by #8910 ;) |
Closing this issue due to inactivity. Moreover, we can't reproduce it either. If this is still a problem for you and it's reproducible using the latest SDK version, feel free to open up a new issue! |
@lukmccall sorry, I don't saw your comment. |
馃悰 Bug Report
I'm getting this error in production:
Encountered an exception while calling native method: Exception occurred while executing exported method askAsync on module ExpoPermissions: null
Happened 429 times for 89 users over 25 days.
Environment
Android, regular RN project with unimodules
Steps to Reproduce
I cannot reproduce locally. I'm pretty sure it comes from this call:
Expected Behavior
No error
Actual Behavior
It doesn't seem to cause a noticeable issue, afaik there is no need to require permissions for notifications on Android. Not sure what the code that ask notif permissions does on Android.
Reproducible Demo
N/A
The text was updated successfully, but these errors were encountered: