From dfb0aa3d5d5ccd2ab81a4d1186610e861771a1a3 Mon Sep 17 00:00:00 2001 From: Michael Fornaro Date: Mon, 3 Jun 2019 14:56:23 +1000 Subject: [PATCH] feat(device-accounts): add "getPermissionsByType" function (#3048) --- src/@ionic-native/plugins/device-accounts/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/device-accounts/index.ts b/src/@ionic-native/plugins/device-accounts/index.ts index 896681cad..5ed269c82 100644 --- a/src/@ionic-native/plugins/device-accounts/index.ts +++ b/src/@ionic-native/plugins/device-accounts/index.ts @@ -37,7 +37,7 @@ export interface AndroidAccount { pluginName: 'DeviceAccounts', plugin: 'cordova-device-accounts-v2', pluginRef: 'DeviceAccounts', - repo: 'https://github.com/xUnholy/cordova-device-accounts', + repo: 'https://github.com/xUnholy/cordova-device-accounts-v2', platforms: ['Android'] }) @Injectable() @@ -87,4 +87,14 @@ export class DeviceAccounts extends IonicNativePlugin { getPermissions(): Promise { return; } + + /** + * Get permissions for access to email registered on Android device 8.0+ for requested type + * @param {string} type + * @returns {Promise} + */ + @Cordova() + getPermissionsByType(type: string): Promise { + return; + } }