Code Monkey home page Code Monkey logo

phonegap-plugin-brightness's People

Contributors

fiscal-cliff avatar rpurushotma avatar ucci avatar vir2bille avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phonegap-plugin-brightness's Issues

Android Lollipop 5

Plugin has stopped working for me in Lollipop, I believe there's changes in the way brightness works. Has anyone else experienced this?

Display lightens up only for a second on iOS 10.3.1

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!

Bug Error iOS 10

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

Can't make it work

Hello!

Don't know why but i can't make it work for Android.

What i have already:

  1. install plugin "cordova plugin add https://github.com/fiscal-cliff/phonegap-plugin-brightness.git"
  2. make brightness.js file with this lines:
    document.addEventListener('deviceready', onDeviceReady);
    function onDeviceReady() {
    window.brightness = cordova.require("cordova.plugin.Brightness.Brightness");
    }
    function setBrightness(value) {
    brightness.setBrightness(value, win, fail);
    }
    function getBrightness() {
    brightness.getBrightness( win, fail);
    }
    function win(status) {
    alert('Message: ' + status);
    }
    function fail(status) {
    alert('Error: ' + status);
    }
  3. call setBrightness(0.6);

All i have in ADB is "D/CordovaLog( 2007): file:///android_asset/www/js/brightness.js: Line 8 : Uncaught ReferenceError: brightness is not defined"
This error point to the "brightness.setBrightness(value, win, fail);" line.

I try to remake project, clean plugin dir and redownload it, and many other things...
Where is my mistake?

Thank you!

setBrightness parameter

Hi, im trying to use this plugin to set the brightness of android device but i dont know what is the range of values for the parameter "value" in the setBrightness method. If use 0 the screen is completely black (its ok). but if use 10, 50 or 100 the screen is normal.

Sorry my english.
Thank you

How to use

Hi! Thanks for writing this plugin for cordova. Could you please update the readme.md with better instructions on how to use? Do I need to insert the code at the bottom into a script tag?

How to build for build.phonegap.com

Hello,

Thanks for writing this plugin. Your plugin is so excellent. It works perfect for me.

I'd like to share the tips that how to build this plugin on build.phonegap.com.

just add to config.xml

<plugin spec="https://github.com/fiscal-cliff/phonegap-plugin-brightness.git" source="git" />

Environment: cli-6.5.0

Thanks.

Example

Do you have an example of the usage. I tried several things with no luck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.