Device Accounts

Contents

Gets the Google accounts associated with the Android device

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

Installation

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

Supported Platforms

  • Android

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));