Problems using the cordova-device-accounts plugin with ionic 2


#1

The promise always returns undefined when i call the method DeviceAccounts.getEmails(). Here is the code that does that.

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

export class RegisterPage {
constructor(private deviceAccnts: DeviceAccounts) { }

public getEmailsAccounts():void{
this.deviceAccnts.getEmails().then(
res=> alert("Emails: "+res)
).catch(err=>alert("Error: "+err));
}
}

Please can someone help me out with this issue?


#2

Same here. It seems like plugin is not working.


#3

Same problem, please help us !


#4

Same problem, please help us !


#5

see TCP sockets in ionic