question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SDK 45] android block permissions warning looped

See original GitHub issue

Summary

Now we can remove permissions from our apps with android.blockedPermissions, that’s fantastic. but what isn’t fantastic is that with it came also a loop in the warning » android: block-permissions: No permissions provided making it be spammed in the terminal.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

45

Environment

expo-env-info 1.0.3 environment info: System: OS: Linux 5.10 Arch Linux Shell: 5.8.1 - /usr/sbin/zsh Binaries: Node: 16.15.0 - /usr/bin/node Yarn: 1.22.18 - /usr/bin/yarn npm: 8.8.0 - ~/ictio/app/node_modules/.bin/npm npmPackages: expo: ^45.0.0 => 45.0.0 react: 17.0.2 => 17.0.2 react-native: 0.68.1 => 0.68.1 npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.3 Expo Workflow: managed

Reproducible demo

Create a new project, add a config plugin (such as expo-image-picker), leave android.blockedPermissions empty or don’t define it. You should be able to see the message at least 2 times when initiating a build, and an infinite number of times when running the app with expo start.

repro on upgraded project from SDK 44 repro on clean initialized project on SDK 45

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
Kakasi-Danielcommented, May 6, 2022

I’m occurring the same issue.

4reactions
brentvatnecommented, May 31, 2022

I can’t reproduce this with expo-cli@5.4.7 and this is resolved in @expo/config-plugins@4.1.5 with this PR which removed the warning entirely.

If you are experiencing this in your project then it is likely that you have a version of @expo/config-plugins installed that is lower than @expo/config-plugins@4.1.5. You can run npm why @expo/config-plugins to see where that comes from.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 6.0 multiple permissions - Stack Overflow
The app needs 2 permissions at startup . SEND_SMS and ACCESS_FINE_LOCATION (both are mentioned in manifest.xml). I am using Support Library v4 which...
Read more >
Notifications - Expo Documentation
Calling this function checks current permissions settings related to notifications. It lets you verify whether the app is currently allowed to display alerts, ......
Read more >
Behavior changes: all apps - Android Developers
System alert window permissions: Certain classes of apps are automatically granted the SYSTEM_ALERT_WINDOW permission upon request.
Read more >
PySimpleGUI
Access to nearly every underlying GUI Framework's Widgets. Supports both Python 2.7 & 3 when using tkinter. Supports both PySide2 and PyQt5 (limited...
Read more >
Configuring Loop Detection Guard [Support] - Cisco
Loop detection guard can be configured only on Layer 2 physical interfaces. ... Display an error message and not disable any port.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found