You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varapp={// Application Constructorinitialize: function(){this.bindEvents();},onBCReady: function(){console.log('bcready');},// Bind Event Listeners//// Bind any events that are required on startup. Common events are:// 'load', 'deviceready', 'offline', and 'online'.bindEvents: function(){document.addEventListener('deviceready',this.onDeviceReady,false);},// deviceready Event Handler//// The scope of 'this' is the event. In order to call the 'receivedEvent'// function, we must explicitly call 'app.receivedEvent(...);'onDeviceReady: function(){app.receivedEvent('deviceready');},// Update DOM on a Received EventreceivedEvent: function(id){varparentElement=document.getElementById(id);varlisteningElement=parentElement.querySelector('.listening');varreceivedElement=parentElement.querySelector('.received');listeningElement.setAttribute('style','display:none;');receivedElement.setAttribute('style','display:block;');console.log('Received Event: '+id);document.addEventListener('bcready',app.onBCReady,false);}};
I can see the result of console.log('Received Event: ' + id); but never 'bcready'.
Phonegap 5.1.1-0.29.0
Android 4.3
The text was updated successfully, but these errors were encountered:
I made a new phonegap project, and added your plugin.
In index.html I added
Do I need other files?
My index.js looks like this:
I can see the result of
console.log('Received Event: ' + id);
but never 'bcready'.Phonegap 5.1.1-0.29.0
Android 4.3
The text was updated successfully, but these errors were encountered: