Skip to content

feat(@capacitor/device): Added batteryChargingStateChange event#2511

Open
maximilien0405 wants to merge 2 commits intoionic-team:mainfrom
maximilien0405:main
Open

feat(@capacitor/device): Added batteryChargingStateChange event#2511
maximilien0405 wants to merge 2 commits intoionic-team:mainfrom
maximilien0405:main

Conversation

@maximilien0405
Copy link
Copy Markdown

@maximilien0405 maximilien0405 commented Apr 9, 2026

Description

I've added an batteryChargingStateChange listener, available on IOS, Android and Web. It triggers every time the device detects when it's charging/not charging anymore. I've personally implemented it on my app for my needs and it works great, i find that very usefull for users that want to keep a status of the devices battery without having to use getBatteryInfo() all of the time...

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation

Platforms Affected

  • Android
  • iOS
  • Web

@maximilien0405 maximilien0405 changed the title feat(device): Added batteryStateChange event feat(@capacitor/device): Added batteryStateChange event Apr 9, 2026
@maximilien0405 maximilien0405 changed the title feat(@capacitor/device): Added batteryStateChange event feat(@capacitor/device): Added batteryChargingStateListenerHandle event Apr 9, 2026
@maximilien0405 maximilien0405 changed the title feat(@capacitor/device): Added batteryChargingStateListenerHandle event feat(@capacitor/device): Added batteryChargingStateChange event Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant