fiscal-cliff / phonegap-plugin-brightness

A phonegap 3.x plugin for brightness control within android and ios
23 stars 39 forks source link

Bug Error iOS 10 #14

Open jesusml opened 8 years ago

jesusml commented 8 years ago

There is an error in adjusting the brightness:

"Variable.setBrightness (1);"

NOT WORKING until the bottom bar settings (WiFi, Bluetooth, Airplane Mode, etc) slides.


whatsapp image 2016-10-05 at 1 37 57 pm

fiscal-cliff commented 8 years ago

Let me ensure, that I've understood correctly. You have changed the brightness through plugin API and then the actual brightness changes only when you open the slider? What the js framework do you use? And could you reproduce this issue on test application

jesusml commented 8 years ago

To be more specific…

The problem:

We’ve noticed that in iOs 10 this partially works, when the user scrolls up the slider (quick access window at the bottom of their iphone) the functionality suddenly works… meaning that the solution doesn’t work automatically.

**The app.

https://itunes.apple.com/mx/app/angelopolis-lifestyle-center/id1077577688?mt=8

User steps:**

1.- User opens the app 2.- Inside the app the user taps and enters the Log in section. 3.- The user writes his/hers username and password and enters 4.- The brightness automatically increases while the user shows their personal code.

angelopolispaso

Test User user: ossiel@kinetiq.com.mx pass: admin

You can see attached the code we are using:

var LightControl; LightControl = cordova.plugins.brightness; LightControl.setKeepScreenOn(true); LightControl.setBrightness(1);

I'm using:

Cordova CLI: 5.4.1 Gulp version: CLI version 3.9.0 Gulp local:
Ionic Version: 1.2.4 Ionic CLI Version: 1.7.12 Ionic App Lib Version: 0.6.5 ios-deploy version: Not installed ios-sim version: 4.1.1 OS: Mac OS X El Capitan Node Version: v0.12.7 Xcode version: Xcode 8.0 Build version 8A218a

fiscal-cliff commented 8 years ago

Hello, I haven't ios development license right now. Could you please run my example application and tell me what's going on your screen?