Flutterlocation: requestService does not return any value on plugin version 2.5.3

Created on 5 Mar 2020  路  13Comments  路  Source: Lyokone/flutterlocation

Describe the bug
In plugin version 2.5.3 Location().requestService() does not return anything while we press 'OK' or 'No Thanks' in location request Dialog Android

Expected behavior
var result = await location.requestService();
it should return true false but it does not return any thing .

Tested on:

  • Android, API Level 29, simulator and real device
bug

Most helpful comment

Hey ! Should be finally fixed with 3.0.3 :) Feel free to open another issue if it's not the case

There is no 3.0.3 at the moment. Will temporarily use 2.5.2.

All 13 comments

Hey, thanks for the report, I'll look into it.
Have you looked at the implementation in the demo app ?

Yes i have checked your implementation.

I have faced with the same problem on Android.
await location.requestService() - never completes with any value, so the application can infinitely be awaiting of the execution.
BTW v2.3.5 worked like a charm.

I have the same problem.
bool flagPermission = await _locationService.requestService();

does not return the value of the dialog

Same issue here.

Also, await location.requestPermission(); doesn't seem to return either.

v2.5.4

318 might address these issues.

Facing the same issue in 2.5.3 and in 2.5.4 also,
Temporarily switched to 2.5.2.

this bug still persists ? am not getting any return value from requestPermission method

Hey ! Should be finally fixed with 3.0.3 :) Feel free to open another issue if it's not the case

Hey ! Should be finally fixed with 3.0.3 :) Feel free to open another issue if it's not the case

There is no 3.0.3 at the moment. Will temporarily use 2.5.2.

@Lyokone When will 3.0.3 be published?

Sorry ! I meant 3.0.2, that should already be released 馃槄

@Lyokone it still doesn't work in 3.0.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fvisticot picture fvisticot  路  3Comments

otopba picture otopba  路  6Comments

LinusU picture LinusU  路  3Comments

RomanJos picture RomanJos  路  4Comments

KingWu picture KingWu  路  11Comments