Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text not added to my phone clipboard #31

Open
Meloakartas opened this issue Jul 16, 2017 · 1 comment
Open

Text not added to my phone clipboard #31

Meloakartas opened this issue Jul 16, 2017 · 1 comment

Comments

@Meloakartas
Copy link

My Environment

  • Plugin version: 0.8.5
  • Platform: android
  • OS version: 7.1.1
  • Device manufacturer / model: OnePlus 5
  • Cordova version (cordova -v): 7.0.1
  • Cordova platform version (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
  • Ionic Version (if using Ionic) : 2

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 :

...
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 !

@davhad
Copy link

davhad commented Oct 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants