apache / apache/cordova-plugin-battery-status

in iOs isn't working properly

Open
#78 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
105
Forks
143
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
The plugging isn't working on iOS devices, the code haven't been update after 7 years

### What is expected to happen?

Its suppose to show the battery status

### What does actually happen?

Doesn't show anything, no even a simple console log in the function

## Information

node v12.16.1
npm 6.13.4
ionic CLI 6.0.2

### Command or Code

here my simple code
this.batteryStatus.onChange().subscribe(status => {
console.log("Estado Bateria");
console.log(status.level, status.isPlugged);
this.batteryText = status.level;
this.cdr.detectChanges();
});

### Environment, Platform, Device

- [X ] I searched for existing GitHub issues
- [ X] I updated all Cordova tooling to most recent version
- [ X] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the example on an iOS device and tracing the batteryStatus.onChange() entry point. No file or test is named; done means the callback runs and exposes the battery level and plugged state.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.