cordova-device-accounts icon indicating copy to clipboard operation
cordova-device-accounts copied to clipboard

not working with ionic

Open hatim-haffane opened this issue 9 years ago • 7 comments

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); });

hatim-haffane avatar Oct 17 '15 08:10 hatim-haffane

are you waiting for the device ready event ?

loicknuchel avatar Oct 18 '15 10:10 loicknuchel

yes i wait for the device ready event

hatim-haffane avatar Oct 18 '15 13:10 hatim-haffane

it's not working for me also...

sandeepinno avatar Mar 07 '16 19:03 sandeepinno

It works for me without issues in Ionic.

Purus avatar Mar 13 '16 17:03 Purus

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.

mohamedRhaiem avatar May 03 '16 11:05 mohamedRhaiem

Hi, why you don't recommend? Thanks

davidecampello avatar Jun 11 '18 20:06 davidecampello

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.

loicknuchel avatar Jun 12 '18 08:06 loicknuchel