https://github.com/acmesoftwarellc/device_user_agent
Flutter plugin to build user agent containing device information.
https://github.com/acmesoftwarellc/device_user_agent
Last synced: 12 months ago
JSON representation
Flutter plugin to build user agent containing device information.
- Host: GitHub
- URL: https://github.com/acmesoftwarellc/device_user_agent
- Owner: AcmeSoftwareLLC
- License: bsd-3-clause
- Created: 2024-05-08T09:35:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T12:34:21.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T22:52:27.583Z (over 1 year ago)
- Language: C++
- Size: 297 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Device User Agent
Flutter plugin for building the user agent for the device.
The built user agent is based on the device's platform, version, and the app's package name and version.
Sample built user agent:
```
com.acmesoftware.dua/1.0.0 (iOS 17.5; iPhone 15 Pro Max; build: 2345678) oem/Apple model/iPhone15,4 screen/1290*2796/3.0
```
## Usage
```dart
import 'package:device_user_agent/device_user_agent.dart';
Future displayUserAgent() async {
final userAgent = await DeviceUserAgent.instance.build();
print(userAgent); // com.acmesoftware.dua/1.0.0 (iOS 17.5; iPhone 15 Pro Max; build: 2345678) oem/Apple model/iPhone15,4 screen/1290*2796/3.0
}
```