client_information 1.0.2 copy "client_information: ^1.0.2" to clipboard
client_information: ^1.0.2 copied to clipboard

outdated

This is a plugin that let you get the basic information from your application's client. It's easy to use and support different platforms(Android, iOS and Web). There 4 different information types ("ap [...]

1.0.2 #

  • New attribute deviceName : Show the device name like "iPhone", "iPad", "Pixel"...

  • New attribute applicationId : Show you the application ID (*Not support for web project)

  • Support test mode.

    // ...
    setUp(() async {
      ClientInformation.mockOn(
          deviceId: 'mock_device_id', osName: 'MyCustomOS');
    });
    
    tearDown(() {
      ClientInformation.mockOff();
    });
    
    test('Custom `deviceId` will be "mock_device_id"', () async {
      ClientInformation info = await ClientInformation.fetch();
      expect(info.deviceId, 'mock_device_id');
    });
    
    // ...
    
  • Update document: README.md

1.0.1 #

  • Update document: README.md
  • Remove "author" section from pubspec.yaml

1.0.0 #

  • Initial release
49
likes
0
pub points
95%
popularity

Publisher

unverified uploader

This is a plugin that let you get the basic information from your application's client. It's easy to use and support different platforms(Android, iOS and Web). There 4 different information types ("application information", "software information", "operating system information" and "device information") you can get by using this plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, http, ulid

More

Packages that depend on client_information