Skip to main content

Overview

Gets the device manufacturer name. This is useful for determining whether OEM-specific settings might be available or for showing manufacturer-specific instructions to users.

Returns

manufacturer
string | null
Promise resolving to the manufacturer name string (lowercase), or null if the manufacturer couldn’t be determined.

Platform Behavior

Example Values

Common manufacturer strings:
  • "samsung" - Samsung devices
  • "xiaomi" - Xiaomi/Redmi/POCO devices
  • "google" - Google Pixel devices
  • "oneplus" - OnePlus devices
  • "oppo" - Oppo devices
  • "vivo" - Vivo devices
  • "huawei" - Huawei devices
  • "honor" - Honor devices
  • "realme" - Realme devices
  • "motorola" - Motorola devices
  • "apple" - iOS devices

Use Cases

When to use:
  • Determining if OEM-specific settings are available
  • Showing manufacturer-specific instructions
  • Analytics and debugging
  • Conditional UI based on manufacturer
  • Detecting devices with aggressive battery management

Example Usage

Basic Usage

Check for Aggressive Battery Management

Show Manufacturer-Specific Instructions

Conditional OEM Settings Button

Analytics/Debugging

Onboarding Logic

Support Helper

Manufacturer-Specific Feature Toggle

Device-Specific Workarounds

Display Manufacturer Name

Handling Null Values

The method returns null if the manufacturer cannot be determined:

Case Sensitivity

The returned manufacturer name is always lowercase for easier comparison: