Closed rif closed 5 years ago
Even with the initial hello world code I get no alert at all.
I only installed it with
cordova plugin add cordova-clipboard
What am I missing?
receivedEvent: function(id) { var parentElement = document.getElementById(id); var listeningElement = parentElement.querySelector('.listening'); var receivedElement = parentElement.querySelector('.received'); listeningElement.setAttribute('style', 'display:none;'); receivedElement.setAttribute('style', 'display:block;'); console.log('Received Event: ' + id); var text = "Hello World!"; cordova.plugins.clipboard.copy(text, function(data){ alert(data) }, function(err){alert(err)}) cordova.plugins.clipboard.paste(function (text) { alert(text) receivedElement.innerHTML = text }, function(err){alert(err)}); cordova.plugins.clipboard.clear(); }
looks like I missed to add manually in config.xml
Even with the initial hello world code I get no alert at all.
I only installed it with
What am I missing?