Problems with Ionic Native Device Accounts plugin

Asked

Viewed 32 times

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?

  • I’m testing directly on mobile, tested on at least 3 devices and failed.

  • Have you used the plugin? Or know of any other that I can get the same result?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.