loicknuchel / cordova-device-accounts Goto Github PK
View Code? Open in Web Editor NEWThis plugin is not maintained anymore... Use it at your owns risks
This plugin is not maintained anymore... Use it at your owns risks
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);
});
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.
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?
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
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.