phonegap-plugin-brightness icon indicating copy to clipboard operation
phonegap-plugin-brightness copied to clipboard

Display lightens up only for a second on iOS 10.3.1

Open imaykay opened this issue 9 years ago • 4 comments

Hi,

at least on the currently newest iOS Version 10.3.1 the display lightens up after a call to

cordova.plugins.brightness.setBrightness(1, function() { console.log('Successfully lightend up display!'); }, function(err) { console.error('Could not lighten up display! ' + err); });

but is back to its old brightness after one second. I am not sure in which iOS Version this behavoir occurs first - it might also be in 10.3.0.

Any ideas?

Thanks a lot!

imaykay avatar Apr 13 '17 14:04 imaykay

Maybe it has something to do with the new brightness features in 10.2.1 according to https://www.forbes.com/sites/gordonkelly/2017/01/28/apple-ios-10-2-1-touchid-display-brightness-bluetooth-battery-problems/ Problem#2 ?

imaykay avatar Apr 13 '17 14:04 imaykay

I don't have any iOS device right now( Could you debug this problem youself? For instance, make an application for native iOS - in which brigtness changes perfectly.

fiscal-cliff avatar Apr 14 '17 12:04 fiscal-cliff

I am sorry, I don't have any clue about native iOS apps :-/ Maybe some other maintainer? Otherwise this will have to wait until I find some time to learn about native development.

imaykay avatar Apr 16 '17 11:04 imaykay

It seems like this issue is not present in newer iOS versions (working on 11.2.5 currently). So this might have been a problem only on specific versions of iOS.

imaykay avatar Feb 20 '18 14:02 imaykay