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

No permissions found in manifest #959

Closed
1 task
jevontech opened this issue Nov 27, 2022 · 9 comments
Closed
1 task

No permissions found in manifest #959

jevontech opened this issue Nov 27, 2022 · 9 comments
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: bug Something isn't working

Comments

@jevontech
Copy link

🐛 Bug Report

I am using permission_handler 10.2.0 for my Android Flutter app.
I am using Flutter 3.3.6
I added :

to AndroidManifest.xml
I request permission for this in my app using
Permission.scheduleExactAlarm.request()

Expected behavior

I expect to see a permission request in my app.

Actual behavior

I get an error:
No permissions found in manifest for: []34

Reproduction steps

Configuration

Version: 10.2.0

Platform:

  • 📱 iOS
  • [X ] 🤖 Android
@vishwatejaaverager
Copy link

same error for me ! any luck !?

@Sun3
Copy link

Sun3 commented Dec 22, 2022

Check out this link to shows all of the possible permissions that you need to add to the AndroidManifest.xml file

https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/example/android/app/src/main/AndroidManifest.xml

I used:

    <!-- Permissions options for the `camera` group -->
    <uses-permission android:name="android.permission.CAMERA"/>

    <!-- Permissions options for the `location` group -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <!-- Permissions options for the `storage` group -->
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

I hope this helps...

@JeroenWeener
Copy link
Contributor

Hi @jevontech, thank you for filing this bug report!

It seems that the contents of your AndroidManifest.xml file got lost when you posted the issue. Can you verify that it contains

<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />

@JeroenWeener JeroenWeener added platform: android Issue is related to the Android platform. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working P2 Important issues not at the top of the work list. labels Jul 11, 2023
@shubhamsinghshubham777
Copy link

shubhamsinghshubham777 commented Jul 21, 2023

Update: This was a breaking change from the flutter_blue_plus library, reverting back its version to 1.5.2 fixed my issue.

@JeroenWeener I'm facing this same issue but with LOCATION permissions and I can confirm that my AndroidManifest.xml contains all location permissions.

I do NOT require ACCESS_BACKGROUND_LOCATION for my app to work but I need to add it if I want the location permission to show in the list of app permissions. If I don't include ACCESS_BACKGROUND_LOCATION, the App Permissions will not show the location permissions at all. My app just needs ACCESS_COARSE_LOCATION just to ensure that I'm able to scan for BLE devices.

But even if I includeACCESS_BACKGROUND_LOCATION, although I do start seeing the location permission listed in my app's info, I still get the following error while trying to request Permission.location:

D/permissions_handler(25206): No permissions found in manifest for: []5

Screenshot 2023-07-21 at 4 15 19 PM

@github-actions github-actions bot removed the status: needs more info We need more information before we can continue work on this issue. label Jul 21, 2023
@mvanbeusekom
Copy link
Member

@Sun3 thank you for providing additional information. As you confirmed the issue (in your case) was caused by the flutter_blue_plus plugin I am going to close this issue.

Please leave a comment containing the contents of the android/app/src/main/AndroidManifest.xml file and the build/app/outputs/logs/manifest-merger-release-report.txt log file (this last file contains information on how the Android build tools merge together all AndroidManifest.xml files during the build process).

@mvanbeusekom mvanbeusekom closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2023
@shubhamsinghshubham777
Copy link

shubhamsinghshubham777 commented Jul 24, 2023

@mvanbeusekom I'm not sure if this issue is closed because of my comment, but if it is, I did not intend that 😅 I am not @Sun3 and I was just mentioning that I was also facing the same issue as he is. So we might want to close this issue only when either @Sun3 or the OP mentions that their issue is resolved.

@AndyDavidJoyce
Copy link

Has anyone else countered this issue? I am currently using the package to request the same permission but the popup is also not showing for me.

Version: 10.4.3

In the app, I request the following

await [ Permission.notification, Permission.scheduleExactAlarm, ].request();

The notification permission popup shows as expected, but the alarm permission pop-up does not. I have tried requesting the alarm permission by itself, but still nothing shows.

Just a small note. I am not getting the manifest issue that OP was getting. I have checked my manifest file and the SCHEDULE_EXACT_ALARM permission is in there.

@jasonkaruza
Copy link

Hello. I'm curious if anyone has managed to find a fix. I'm using:

[√] Flutter (Channel stable, 3.3.6, on Microsoft Windows [Version 10.0.22631.4169], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)

And version 10.2 of the plugin. Confirmed that the merged manifest logs...

...
	android:name
		ADDED from <path>\android\app\src\main\AndroidManifest.xml:28:22-65
uses-permission#android.permission.SCHEDULE_EXACT_ALARM
ADDED from <path>\android\app\src\main\AndroidManifest.xml:30:5-78
...

...and .xml file DOES have <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> inside. Entering that twice in the main manifest file makes it appear twice in the generated manifest, but doesn't seem to make a difference with the error appearing.

Permissions not fully granted. Trying again.
D/permissions_handler(10198): No permissions found in manifest for: []34

The merged manifest XML also shows:

<uses-sdk
        android:minSdkVersion="23"
        android:targetSdkVersion="33" />

Not sure if the minSdkVersion being 23 is problematic. I can start going down the path of upgrading the plugin further, or Flutter to a newer version, etc. but hoping for something definitive if anyone has an official fix.

@jasonkaruza
Copy link

For anyone else that is also looking for a solution here, I ended up using the flutter_local_notifications package v16.1.0 to request the permission and open up the settings directly to the needed screen. Glad I found this because I haven't migrated to Flutter 3.0+ yet. Hope this helps others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants