Comments (9)
@sanju-developer Setting the permissions to Never
means never ask me again for permissions. So it makes sense you donโt receive a dialog.
from flutter-permission-plugins.
@ravitejaavv have you listed all the required permissions in your Info.plist
file?
You should add the following lines to your ios/Runner/info.plist
file (of course you provide more user friendly messages as part of the tags):
<key>NSLocationWhenInUseUsageDescription</key>
<string>Need location when in use</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Always and when in use!</string>
<key>NSLocationUsageDescription</key>
<string>Older devices need location.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Can I haz location always?</string>
Check out the Info.plist
file in the example project here
from flutter-permission-plugins.
@ravitejaavv have you listed all the required permissions in your
Info.plist
file?You should add the following lines to your
ios/Runner/info.plist
file (of course you provide more user friendly messages as part of the tags):<key>NSLocationWhenInUseUsageDescription</key> <string>Need location when in use</string> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <string>Always and when in use!</string> <key>NSLocationUsageDescription</key> <string>Older devices need location.</string> <key>NSLocationAlwaysUsageDescription</key> <string>Can I haz location always?</string>
Check out the
Info.plist
file in the example project here
i have added only 2 permissions earlier. Its working fine now after adding all permissions
from flutter-permission-plugins.
I'm testing on emulator and I set my permission to Never from the setting of emulator.
then I have added all the permission as you stated, but this will not opening that dialog.
Could please tell what would be the issue ?
๐
from flutter-permission-plugins.
@mvanbeusekom
You are correct.
Do you know any way to direct open location page in mobile setting from an flutter app ?
from flutter-permission-plugins.
On iOS you can only open the App settings page. Other direct links are not allowed by Apple. On Android there are some more options but these are not yet supported by the location_permissions
plug-in.
To open the app settings you can use the openAppSettings
method of this plugin.
from flutter-permission-plugins.
Okay cool, Thanks for sharing knowledge. I really don't know that apple don't allow to open direct link.
Ya for android I'm using
openAppSettings
BTW, then how Google Map, Ola and all open direct location page form their App.๐ง
from flutter-permission-plugins.
I donโt know how they do it, if you have any documentation or information I would gladly have a look at it and see if it fits in the plugin
from flutter-permission-plugins.
Ya, I'm already struggling with it. If I find something surely will come back to you.
from flutter-permission-plugins.
Related Issues (20)
- Multiple bugs when we deny location permission and then ask for it again HOT 1
- Is there any plans to support Web version? HOT 1
- Location permission level has no effect on checking or requesting permissions. HOT 3
- AndroidManifest need ACCESS_FINE_LOCATION permission? HOT 2
- Request ServiceStatus
- On iOS 13, location always is incorrectly returned as granted when you only have when in use HOT 2
- Method requestPermissions returns inconsistent results with "Allow Once" on iOS
- Android 11 support problem
- Android permission allowWhenAppInUse triggering inactive and resumed appLifeStateEvent
- [iOS] Requesting location always permissions does not return status when requesting more than once or selecting while using HOT 4
- Issue with the checkPermissionStatus on Android when the user selects "Allow only while using the app" HOT 2
- iOS permission key search is incomplete HOT 1
- [android] "Can request only one set of permissions at a time." HOT 5
- Null Safety Support HOT 1
- Will these packages eventually replace the permission_handler package? HOT 1
- Open turn on location service
- Show Rationale Dialog
- On Android version less than 6 (M) checkPermissionStatus returns Denied HOT 4
- LocationPermissionsPlugin.java uses or overrides a deprecated API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-plugins.