Search packages, repositories and app categories

Package detailsv2.0.6

device_marketing_names

Lookup device marketing names for Android, iOS and browsers with ease. No internet connection or database required.

AndroidiOSWeb
30-day downloads
43.4K
Likes
46
Pub points
160

Install package

flutter pub add device_marketing_names

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter package that enables easy lookup of device marketing names for Android, iOS, and web browsers without requiring an internet connection or external database. It provides accurate device identifiers based on user agent strings and system properties, making it ideal for analytics, debugging, or personalized user experiences. The package is self-contained and efficient, ensuring fast performance across platforms.

Use cases

  • Device identification in analytics
  • User experience personalization
  • Debugging device-specific issues
  • Displaying device names in apps
  • Compatibility checks

Key features

  • No internet required
  • Cross-platform support
  • Offline database
  • Simple API
  • Accurate device naming

Suitable for

  • Analytics integrations
  • Developer tools
  • App diagnostics
  • User-facing device info
  • Cross-platform apps

Considerations

  • Limited to known devices
  • Does not update dynamically
  • Relies on built-in device list
  • Not suitable for real-time device detection
  • May miss newer or niche devices

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Pub Version codecov GitHub Workflow Status GitHub likes pub downloads pub points Main

Device Marketing Names

A simple device name lookup package. Map e.g. 'iPhone13,4' to 'iPhone 12 Pro Max' or 'SM-G980F' to 'Galaxy S20'. No internet connection or database required.

Open in IDX

Features

  • Lookup Android marketing names
  • Lookup iOS (iPhone & iPad) marketing names
  • Lookup web browser names
  • Get the marketing name of the current device or by an already known Android or iOS model
  • Relies on device_info_plus to get the current device model information on Android or iOS and device_identifiers which maps those to the marketing names
  • The browser name is mapped via web and prettified within this library

Usage

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  device_marketing_names: ^2.0.3

More information on pub.dev.

Examples

For full examples please see the example app.

final deviceNames = DeviceMarketingNames();

// Get one marketing name of the device.
final singleDeviceName = await deviceNames.getSingleName();

// Get all marketing names of the device.
final allDeviceNames = await deviceNames.getNames();

// Get one marketing name for the given model.
final singleDeviceNameFromModel = deviceNames.getSingleNameFromModel(DeviceType.android, "ONEPLUS A5010");

// Get all marketing names for the given model.
final allDeviceNamesFromModel = deviceNames.getNamesFromModel(DeviceType.android, "ONEPLUS A5010");
Migration from 0.3.0 to 0.4.0
  • Replace getMarketingName() with getSingleName() if you want to get exactly one matching name.
  • Replace getMarketingName() with getNames() if you want all matching names as a single string. Names are separated by " / ".
  • Replace getMarketingNameFromModel() with getSingleNameFromModel() if you want to get exactly one matching name.
  • Replace getMarketingNameFromModel() with getNamesFromModel() if you want all matching names as a single string. Names are separated by " / ".

How to contribute

If you are interested in contributing, please have a look into the contribution guide. Every idea, bug report or line of code is heavily appreciated.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package