cordova-device-accounts
cordova-device-accounts copied to clipboard
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); });
are you waiting for the device ready event ?
yes i wait for the device ready event
it's not working for me also...
It works for me without issues in Ionic.
you can resolve this by changing the sdk version of android in the manifest file from 23 to 22 as below <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" /> but I didn't recommend this plugin for production environment.
Hi, why you don't recommend? Thanks
As explained in the project description, this plugin is not maintained anymore... I can merge PR and transfer ownership if needed but I will not have the time to work on it.