Open BenjaminHorn opened 9 years ago
try this :
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
document.addEventListener('bcready', this.onBCready, false);
}
may be the 'bcready' event has been fired before the 'receivedEvent' be called.
I'll try it later.
@lizhijumacc thanks for your reply! Unfortunately I can still see only
[phonegap] [console.log] Received Event: deviceready
After some remote debug it turned out, BC or window.BC is null
.
Looks like
<script src="bc.js"></script>
does not load BC namespace.
Is any news on this?
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