Device Accounts

Contents

Gets the Google accounts associated with the Android device

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

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-device-accounts npm install @ionic-native/device-accounts
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/device-accounts

Supported Platforms

  • Android

Usage

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

constructor(private deviceAccounts: DeviceAccounts) { }

...

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