Access Battery Status inside your ionic application

Опубликовано: 21 Февраль 2026
на канале: Anish
1,065
9

All events in this plugin return an object with the following properties:
-- level: will return the battery charge percentage from 0-100.
-- isPlugged: returns a boolean value that indicates whether the device is plugged in or not.

In ionic 2 we have two methods to the battery status
-- Subscribe - watch change in battery status.
-- Unsubscribe - stop watches the battery.

Supported platforms
-- Amazon Fire OS
-- iOS
-- Android
-- BlackBerry 10
-- Windows Phone 7
-- Windows Phone 8
-- Windows
-- Firefox OS