-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't make it work for build.phonegap.com #12
Comments
Hello, I do not know, actually. But I would try to help you this weekend |
Thank you! On Jul 8, 2015, at 3:29 PM, Evgeniy L [email protected] wrote:
|
Hi, I tried to submit the plugin on phongap build platform. But I need to buy something from adobe. I felt little bit disturbing about that. I try to clarify how much will it cost. Sorry for bad news.( |
If it’s okay, I’ll fork it and try myself.
|
Let me know, where it ended up. |
Forked it, changed the id, submitted as a private plug-in, it worked with no further modification.
|
looks good. |
Hi, |
Hi! I'd prefer you solve this issue as justinc22 did. I can't register the plugin in the phonegap build myself, since I hadn't bought anything from them. If you hadn't bought anything too, I would try to find the way to register the plugin using an account of friend of mine. please tell me, could you register the plugin as private? |
I did not buy anything so I cant register. |
I've found my plugin already published) Here the link:https://build.phonegap.com/plugins/3757 |
Yes it exist in phonegap build. But I couldnot make it work. I changed ID to "window.brightness = cordova.require("cordova.plugin.c22.Brightness.Brightness"); Again, it did not work. |
Hello! |
Hello, Thanks for your help. //*_Error line- Error Message: Undefined_* //_My whole code:_
}; function setBrightness(value) { |
Is there any way you can get a console on the app, so you can ask it yourself? I don’t use cordova.require, but I look at if (cordova && cordova.plugins && cordova.plugins.brightness) cordova.plugins.brightness.setBrightness(x)
|
if (cordova && cordova.plugins && cordova.plugins.brightness) // returns true stataments below returns true but cordova.plugins.brightness.setBrightness(1); doesn't change anything on the screen brightness. |
Hello! I would recomend you to build the sample application. I didn't compile any application in phonegap build. But @JustinC22 did. Actually, setBrightness('1') means, that you are trying to set 100% brightness. And if you have 100% brightness, you won't see any changes. Please tell me what version of OS/device you tested, and attach console.log to the issue. |
I am able to use your plugin successfully in phonegap. But I it does not work with Phonegap Build with the same device and settings. I am using Android 4.1.1, Phonegap build version 3.7.0. I used your sample application and added "<gap:plugin name="cordova.plugin.brightness" />" to your xml file to be able to use plugin for phonegap build. 3 buttons on the page (1, 0.1 and get) didn't do anything. The line below throws an error "undefined": Thank you very much for trying to help me... |
I tried to compile test application myself this evening. And it seems that I failed to add my plugin into this application)) I will let you know if things become clear. |
Hi!
|
Hi, Hope this helps... |
Hello, @zekeriyademir! So, I guess, your version works just perfect))) |
It is not working on my mobile phone. Did you try it on a real device? |
Yes, It was a real phone. Nexus 5, Android 5.1. I've just tried android 4.1.2 on sgs3, and it works, I have developed the plugin on that device. Here is shared pgb application. |
Thank you very very much for your help!! |
so, done with this issue) |
Is there any way to use this plugin for PhoneGap Build?
The text was updated successfully, but these errors were encountered: