carp-dk / carp-dk/flutter-plugins

[activity_recognition_flutter 4.0.4] Foreground service always starts

Open
#409 4 comments 0 reactions 0 assignees View on GitHub
bugfix
Dominant language
Dart
Stars
608
Forks
735
Avg merge
1m
Merged PRs (30d)
3

Description

### Device / Emulator and OS
On Android only.

### Describe the bug
Passing along the argument `runForegroundService = false` still results in a foreground service. This is because the argument in `ActivityRecognitionFlutterPlugin.java:87` is ignored. I fixed this in PR #408 .

### To Reproduce
Run the plugin example and change
```java
void _startTracking() {
activityStream =
activityRecognition.startStream(runForegroundService: false);
activityStream.listen(onData);
}
````

### Expected behavior
Activity recognition _without_ a foreground service

### Actual behavior
A foreground service started running

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.