Closed gerbil closed 10 years ago
Hi, that's not valid syntax for callbacks. Try this: onclick="window.plugins.insomnia.keepAwake(function(){alert('success')}, function(){alert('not success')})"
thnx, now it's 'not success'
Can you share your full code with me? Please mail your project to eddyverbruggen[at]gmail.com and I'll have a look!
Sent
Installed 3rd Party Plugins in phonegap build: nl.x-services.plugins.insomnia - 3.0
button onclick="window.plugins.insomnia.keepAwake()" button onclick="window.plugins.insomnia.allowSleepAgain()" - In index.html
nothing happens after click on the buttons above..
i've tryed to use callbacks: onclick="window.plugins.insomnia.keepAwake(alert('success'),alert('not success'))"
but everytime i got two callbacks pushed