expo: Exception occurred while executing exported method askAsync on module ExpoPermissions: null

🐛 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

image

Steps to Reproduce

I cannot reproduce locally. I’m pretty sure it comes from this call:

const { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS);

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 7
  • Comments: 15 (11 by maintainers)

Most upvoted comments

@lukmccall sorry, I don’t saw your comment. Yes, was fixed with https://github.com/expo/expo/pull/8910 Thank you so much for your help, you are great 🥇

Hi @Speedy1991, the bug which you found isn’t connected with this issue. So, I’ve created a separate issue for this (see https://github.com/expo/expo/issues/8909). It concerns problems with the askAsync method. The issue with getAsync was fixed by https://github.com/expo/expo/pull/8539 and it will be available in the SDK 38.