Giter Club home page Giter Club logo

cordova-device-accounts's People

Contributors

loicknuchel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-device-accounts's Issues

Ionic and this plugin

I have instlaled this plugin and am trying to use it with Ionic framework. When I call cordova.plugins.DeviceAccounts, I get undefined. Any ideas?

not working with ionic

i try to use that with my ionic app , but it not working i get nothing on the accounts array ???

window.plugins.DeviceAccounts.get(function(accounts){
// accounts is an array with objects containing name and type attributes
console.log('account registered on this device:', accounts);
}, function(error){
console.log('Fail to retrieve accounts, details on exception:', error);
});

getEmail getting emails only for com.google

Your js for getEmail calls getEmails, which hardcodes type to com.google. What is the significance of 'com.google' type?

And, your documentation on getEmail method is misleading in this respect, I think you should add (accounts with 'com.google' type) note for this function as well.

Ionic 2 - How do use DeviceAccounts plugin

How do I use DeviceAccounts in Ionic 2?

ionic plugin add https://github.com/loicknuchel/cordova-device-accounts.git

I'm trying to use the code below:

send(){
    (<any>window).plugins.DeviceAccounts.get(function(accounts){
        alert(accounts);
    }, function(error){
        alert(error);
    });
}

But this is giving the following error:

Cannot read property 'DeviceAccounts' of undefined

Not returnig under promise then in Ionic 3

Hello,

I am using this plugin in Ionic 3 under platform ready block,

Below is the code:

this.deviceAccounts.get() .then(acc => { debugger; }) .catch(err => { alert("Error while fetching Email Account!!!"); });

Also, the permission for GET_ACCOUNTS is granted.

The issue is not getting the result in acc i.e. promise is not resolving even not going to catch block.

Android 6.0 Issues

Hey. This plugin is not working on Android 6.0 because of permission issues i guess. Can you please fix this or help me fix my problem.

Thank you.

Please add Typescript definition file

I'm working with Ionic-v2 typescript version. Can I request you to add corresponding Typescript definition file to work with Angular2/Ionic-v2. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.