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

permission #29

Open
Amikashkash opened this issue Jan 5, 2022 · 3 comments
Open

permission #29

Amikashkash opened this issue Jan 5, 2022 · 3 comments

Comments

@Amikashkash
Copy link

after updating the manifest as explained I get this error when I click the button -

copy from the manifest:

<permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

this is the error I get:
E/flutter (10219): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: No location permissions are defined in the manifest. Make sure at least ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION are defined in the manifest.

I tried to copy the git project to a new project but I get the same error

can you help me ?

@Amikashkash
Copy link
Author

since no help came from here, I had to find the answer my self.
you have to ask permission from within the page:
LocationPermission permission;
permission = await Geolocator.requestPermission();

@KenSeabolt
Copy link

Thanks for saving me some time.

@tauheed0007
Copy link

since no help came from here, I had to find the answer my self. you have to ask permission from within the page: LocationPermission permission; permission = await Geolocator.requestPermission();

where should we paste this code of lines please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants