Baseflow / Baseflow/flutter-geolocator

[Bug]: getPositionStream rerturns stale Stream

Open
#1,755 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.3k
Forks
803
Avg merge
8h 16m
Merged PRs (30d)
1

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-geolocator/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-geolocator/blob/main/geolocator/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [x] Android
- [ ] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows

### Steps to reproduce

Can't really tell unfortunately, as we're seeing the problem only through our remote logging.

### Expected results

The stream either emits data, or, if there is a problem, throws an error.

### Actual results

In our mobile (Android+iOS) app, for some of our users, getPositionStream doesn't emit any data, even though they are under GPS coverage. The stream doesn't emit an error either, it just stays silent. We call getLastKnownPosition right before that and it does return a position.

### Code sample

see "Actual Results"

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

newest

### Flutter Doctor output

Doctor output

```console
[Paste your output here]
```

Contributor guide

Open the contributing guide

Research direction

Start with the getPositionStream and getLastKnownPosition entry points described in the report, focusing on the Android path. The issue provides no reproduction steps, version details, files, or tests, so first investigate how the stream behaves when the last-known lookup succeeds. Done means the stream emits position data or reports an error instead of remaining silent.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.