Skip to content
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

[expo-location] requestForegroundPermissionsAsync() is never resolved on native iOS #28284

Open
krisgerhard opened this issue Apr 18, 2024 · 0 comments
Labels
iOS Location needs review Issue is ready to be reviewed by a maintainer

Comments

@krisgerhard
Copy link

Minimal reproducible example

Reading from comments in the code this is a known problem but could not find a issue for it

What platform(s) does this occur on?

iOS

Did you reproduce this issue in a development build?

Yes

Summary

  • Reset application to no permissions granted.
  • Call Location.requestForegroundPermissionsAsync()
  • Grant permission (same behaviour with "Only once" or "While in use".
  • Location.requestForegroundPermissionsAsync() is never resolved.
  • Reload app
  • Call Location.requestForegroundPermissionsAsync()
  • ☝️ resolves immediately (without displaying permissions modal) as permissions are already granted.

These issues are well documented in the code here and here

Is there are workaround or possible fix planned?

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 18.20.2 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~.yarn\bin\yarn.CMD
npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ~50.0.17 => 50.0.17
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
Expo Workflow: managed

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

@krisgerhard krisgerhard added the needs validation Issue needs to be validated label Apr 18, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Location needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants