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

Approximate location not working - API level 34 #974

Open
fozlerabbi321 opened this issue Jul 28, 2024 · 0 comments
Open

Approximate location not working - API level 34 #974

fozlerabbi321 opened this issue Jul 28, 2024 · 0 comments

Comments

@fozlerabbi321
Copy link

fozlerabbi321 commented Jul 28, 2024

Describe the bug
Selecting approximate location, a new popup appears. Then If click on 'Keep Approximate Location' again, then greeting error log.

Get location data
LocationData locationData = await location.getLocation();
to before checking the location status shows 'PermissionStatus.deniedForever'.

Screenshot_1
Screenshot_5

Expected behavior
Get latitude and longitude

Tested on:

  • Android, API Level 34 [emulator and real device both device]
  • Android, Version 14

Additional logs
Log --> Location Status: PermissionStatus.deniedForever

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(PERMISSION_DENIED, Location permission denied, null, null)
E/flutter (30021): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
E/flutter (30021): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (30021):
E/flutter (30021): #2 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:534:43)
E/flutter (30021):
E/flutter (30021): #3 MethodChannelLocation.getLocation (package:location_platform_interface/src/method_channel_location.dart:83:9)
E/flutter (30021):
E/flutter (30021): #4 HomeScreenState.build. (package:mafil_app/presentation/screens/home/home_screen.dart:122:37)
E/flutter (30021):

@fozlerabbi321 fozlerabbi321 changed the title Approximate location on API level 34 Given approximate location to stop App - API level 34 Jul 28, 2024
@fozlerabbi321 fozlerabbi321 changed the title Given approximate location to stop App - API level 34 Approximate location not working - API level 34 Jul 29, 2024
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

1 participant