Device Accounts

Contents

Gets the Google accounts associated with the Android device

Installation

ionic cordova plugin add cordova-device-accounts-v2npm 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=YOURPRODUCTKEYnpm 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));