Closed Sheharyar566 closed 3 years ago
+1
Same issue here.
D:\MyProjects\iex_driver>flutter doctor -v [√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18362.778], locale en-IN) • Flutter version 1.12.13+hotfix.9 at C:\Saravanan\Flutter_Sdk\flutter • Framework revision f139b11009 (4 weeks ago), 2020-03-30 13:57:30 -0700 • Engine revision af51afceb8 • Dart version 2.7.2
Has anyone resolved this?
Facing a similar issue The app wont ask the user for permissions it works fine in debug mode
I have the same issue. When running the app in debug mode (via flutter run in console) everything works fine and the requests pop up. However in release mode, nothing shows. Any solution yet?
Does the app already have permissions?
Check "Settings -> Privacy ->
If not, please update your Flutter version and use the latest version of permission_handler and provide us with flutter doctor -v
and a sample of the code that is triggering the issue
same issue
The same issue, is there any solution yet? The permission handler asks for permissions in debug mode but in release mode, it just says the permission was denied.
Same issue on my side, app has no permissions granted and doesn't ask for it. Even if I add manually permissions, the app doesn't work for all that
Does the app already have permissions?
Check "Settings -> Privacy ->
" on iOS, or "Settings -> Apps & Notifications -> Permission Manager -> Location" on Android 10. If not, please update your Flutter version and use the latest version of permission_handler and provide us with
flutter doctor -v
and a sample of the code that is triggering the issue
Sorry @danielroek , I haven't used the flutter-permission-handler for a while (and still am not using it, since my job required me to switch to ReactJS :) ).
@gagan722 @thecaptainXgod @rsommerard if possible, can you please provide the details to @danielroek
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi guys, so I don't know if you made the dumbest mistake like me. I fixed the issue by adding these lines to AndroidManifest.xml in the main folder.
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
The problem was I added these in debug & profile folders in the AndroidManifest.xml file but not in the main that is why can't use it when the app was build in release mode.
Also, I have attached the screenshot for the same.
Steps:
Hope this helps you too :)
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Hi, I have the same issue.
when this line is running
PermissionStatus permission = await Permission.contacts.status;
this error appear and exit my app.
my AndroidManifest.xml have this line:
The <uses-permission>
worked for me.
Press and hold the app icon and open its setting. Then manually allow the permission. After I added the <uses-permission>
tag, that's what I had to do.
🔙 Regression
I am trying to make use of the Permission Handler plugin to develop an application which asks for location permissions. And I am testing my app on a physical device. Oh, and I am focusing mostly on android side of flutter.
Old (and correct) behavior
At the very first try (I mean, when I installed plugin and implemented it), it asked for a permission about making use of WiFi and GPS to get an accurate estimate of the location, which I agreed. Oh, and this permission dialog showed up when I made use of check permission status function (and not the request permission function). But still, I agreed.
Current behavior
And now that I added the request permission function, it isn't showing any dialog. To get rid of the problem, I uninstalled the app, cleared cache, cleared data and used Flutter clean, but to no avail.
Reproduction steps
Here's the code:
Configuration
And here's my "MAIN" Android Manifest file:
and the Debug Manifest:
and the build.gradle (inside src folder):