Device Accounts

Contents

Gets the Google accounts associated with the Android device

https://github.com/danielsogl/cordova-device-accounts

Ionic Device Accounts插件的安装(Installation)

ionic cordova plugin add cordova-device-accounts npm install @ionic-native/device-accounts

Ionic Device Accounts插件支持的平台(Supported Platforms)

  • Android

Ionic Device Accounts插件的用法(Usage)

import { DeviceAccounts } from '@ionic-native/device-accounts';

constructor(private deviceAccounts: DeviceAccounts) { }

...

this.deviceAccounts.get()
  .then(accounts => console.log(accounts))
  .catch(error => console.error(error));