Open Meloakartas opened 7 years ago
cordova -v
cordova platform ls
Installed platforms: android 6.2.3 Available platforms: blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 webos ~3.7.0 windows ~5.0.0
To copy some text in my phone clipboard
No text is added
I installed the plugin, added it to the imports in app.module.ts, added it in the providers.
Here is my home.ts code and the function called on button click :
... import { Clipboard } from '@ionic-native/clipboard'; export class HomePage{ constructor(public navCtrl: NavController, public modalCtrl: ModalController, private keyboard: Keyboard, public alertCtrl: AlertController, public storage: Storage, private clipboard: Clipboard) { } exportCards() { this.clipboard.copy("test"); } }
And then nothing is added to my clipboard ...
Thanks for your help !
Same issue here. That's my code: https://stackoverflow.com/questions/46587607/cordova-clipboard-fails-to-paste?noredirect=1#comment80267098_46587607
My Environment
cordova -v
): 7.0.1cordova platform ls
):Expected Behavior
To copy some text in my phone clipboard
Actual Behavior
No text is added
Code
I installed the plugin, added it to the imports in app.module.ts, added it in the providers.
Here is my home.ts code and the function called on button click :
And then nothing is added to my clipboard ...
Thanks for your help !