0
I’m trying to get accounts registered on the device with the device Accounts plugin Ionic, but in the file I have not returned anything on the console.
My code is :
testeSemNative() {
DeviceAccounts.getPlugin().getEmail(
account => console.log('Account' + account),
error => console.error(error));
DeviceAccounts.getPlugin().get(
accounts => console.dir(accounts),
error => console.error(error));
}
testeComNative() {
this.deviceAccounts.get()
.then(accounts => console.log(accounts))
.catch(error => console.error(error));
}
I searched in some places, and had a topic suggesting to use another code template, so I tried to perform a test using Ionic Native, and another test calling directly the plugin, but in both I could not get any results
You are testing on emulator, or generated the . pk and installed on mobile?
– Wanderson Aparecido
I’m testing directly on mobile, tested on at least 3 devices and failed.
– Diego Estacho
Have you used the plugin? Or know of any other that I can get the same result?
– Diego Estacho