carp-dk / carp-dk/flutter-plugins

[app_usage: ^2.0.0] The appName is not displayed correctly

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

Description

### Describe the bug
The getter `appName` supposed to return the name of the app but it returns the last part of the `packageName`

### To Reproduce
```
List infos = await AppUsage.getAppUsage(DateTime.now(), DateTime.now());
print(infos[0].appName);
```

### Expected behavior
For example, consider the app PUBG Mobile
its packageName is `com.pubg.imobile`
`appName` should return PUBG Mobile

### Actual behavior
But `appName` returns imobile

### Screenshots
![image](https://user-images.githubusercontent.com/34624548/138720019-27142507-dc12-4241-a3f8-3d461e3b20c4.png)

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.