Closed adetoola closed 6 years ago
Same problem here, with ionic 2, galaxy s7 edge
Instead of this:
this.deviceAccounts.getEmail()
.then(account => console.log('Account' + account)) // Guy, double your hustle, not working.
.catch(error => console.error(error)); // So, sorry for you. Not working.
this.deviceAccounts.get()
.then(accounts => console.dir(accounts)) // No output. DOA
.catch(error => console.error(error)); // No output
Can you try this:
DeviceAccounts.getPlugin().getEmail(
account => console.log('Account' + account),
error => console.error(error));
DeviceAccounts.getPlugin().get(
accounts => console.dir(accounts),
error => console.error(error));
If it doesn't work, then this is an issue with the plugin & not Ionic Native.
Hello. I wanted to try this plug-in out today too but this is happening to me now. Nothing is showing in the promise or in its catch. How can I solve this?
Thanks.
I'm submitting a ... (check one with "x") [x ] bug report [ ] feature request
Current behavior: Device-Accounts is not working properly. It seems promises are not working as both
then
and thecatch
block are not returning any results forget()
,getEmail()
,getEmails()
.Expected behavior: As per documentation, those function should return a promise with the email accounts registered on the device.
Steps to reproduce: Simply follow the installation steps for the plugin. Insert relevant initialisation code into a platform.ready() block Connect an android device and run:
ionic cordova run android -lcs --debug --device
Then check console for outputsRelated code:
Other information: Device: Samsung Galaxy Tab 4(SM-T531) Android version: 5.0.2
package.json info:
Ionic Info: