From b61b33987f876ecaa0a341883bb8bd500cc72421 Mon Sep 17 00:00:00 2001 From: duncan-c Date: Fri, 2 Nov 2018 16:08:43 +0000 Subject: [PATCH] fix(contacts plugin): add the rawId parameter (#2799) * fix(contacts plugin): add the rawId parameter This adds the rawId parameter to the contact class which allows the rawId value to be passed to Android which is required for saving contacts. * Update index.ts --- src/@ionic-native/plugins/contacts/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index a036c66c7..79e69d0e3 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -45,6 +45,9 @@ export interface IContactProperties { /** A globally unique identifier. */ id?: string; + /** A globally unique identifier on Android. */ + rawId?: string; + /** The name of this Contact, suitable for display to end users. */ displayName?: string; @@ -91,6 +94,7 @@ export interface IContactProperties { export class Contact implements IContactProperties { private _objectInstance: any; @InstanceProperty id: string; + @InstanceProperty rawId: string; @InstanceProperty displayName: string; @InstanceProperty name: IContactName; @InstanceProperty nickname: string;