app_device_net_info 0.0.1 copy "app_device_net_info: ^0.0.1" to clipboard
app_device_net_info: ^0.0.1 copied to clipboard

A Flutter package to provide app, device, and network info in JSON format.

๐Ÿ“ฑ app_device_network_info #

A Flutter plugin that provides structured access to application, device, and network information โ€” all in JSON-serializable format. Ideal for logging, analytics, debugging, or tagging API requests with environment metadata.

โš™๏ธ Works on Android and iOS. No permissions required.


โœจ Features #

  • โœ… App info: name, version, build number, platform, environment
  • โœ… Device info: model, OS, manufacturer, screen resolution, language, unique ID
  • โœ… Network info: IP address, connection type (Wi-Fi, cellular)
  • โœ… All data serialized to clean, nested Map<String, dynamic>

๐Ÿš€ Installation #

Add this to your pubspec.yaml:

dependencies:
  app_device_network_info: ^0.0.1

Then run:

flutter pub get

๐Ÿง  Usage #

import 'package:app_device_network_info/app_device_network_info.dart';

void main() async {
  final info = await AppDeviceNetworkInfo.getAll();
  print(info.toJson());
}

๐Ÿ“ฆ Output (Sample) #

{
  "app": {
    "name": "ExampleApp",
    "id": "com.example.app",
    "versionKey": "42",
    "versionNumber": "1.2.3"
  },
  "device": {
    "manufacturer": "Apple",
    "type": 0,
    "id": "1e2d4f7b-bc90-41ea-9af6-21fd02be41c0",
    "model": "iPhone13,3",
    "os": 1,
    "osVersion": "17.2",
    "screen_resolution": "1125x2436",
    "device_language": "en-US"
  },
  "network": {
    "type": 0,
    "ip": "192.168.1.105"
  }
}

๐Ÿ›  Fields #

App Info #

Field Type Example
name String ExampleApp
id String com.example.app
versionKey String 42
versionNumber String 1.2.3

Device Info #

Field Type Example
manufacturer String Samsung, Apple
type int 0 = mobile
id (UUID) String 1e5rt71e...
model String iPhone13,3
os int 0 = Android, 1 = iOS
osVersion String 17.2, 12
screen_resolution String 1125x2436
device_language String en-US, fa-IR

Network Info #

Field Type Example
type int 0 = WiFi
ip String 192.168.1.105

๐Ÿ“Ž Notes #

  • The device ID is a persistent UUID stored using shared_preferences, if no reliable platform-specific ID is available.
  • No location or push token is collected โ€” keeping it simple and permission-free.
  • Platform detection is inferred from device info (e.g., iOS vs Android).

๐Ÿ” Permissions #

None required! This plugin works without runtime permission prompts.


๐Ÿ“„ License #

MIT


๐Ÿ’ก Contributions #

Pull requests, bug reports, and feedback are welcome!


๐Ÿ“ฃ Author #

Developed by ABOMIS ยท โœ‰๏ธ [mike.backshaw@abomis.com]

0
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to provide app, device, and network info in JSON format.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

connectivity_plus, device_info_plus, flutter, network_info_plus, package_info_plus, shared_preferences, uuid

More

Packages that depend on app_device_net_info