[ 
https://issues.apache.org/jira/browse/CB-6979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15028990#comment-15028990
 ] 

ASF GitHub Bot commented on CB-6979:
------------------------------------

Github user daserge commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-contacts/pull/89#discussion_r45988996
  
    --- Diff: src/ios/CDVContact.m ---
    @@ -1324,6 +1324,7 @@ - (NSObject*)extractPhotos
         NSMutableArray* photos = nil;
     
         if (ABPersonHasImageData(self.record)) {
    +        CFIndex photoId = ABRecordGetRecordID(self.record);
    --- End diff --
    
    Will this always return a valid value?


> CDVContact : ExtractPhotos creating replica photos 
> ---------------------------------------------------
>
>                 Key: CB-6979
>                 URL: https://issues.apache.org/jira/browse/CB-6979
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts
>         Environment: iOS
>            Reporter: Geetha
>            Assignee: Vladimir Kotikov
>            Priority: Minor
>              Labels: iOS, triaged
>
> When we try to get the contacts from the Addressbook , in CDVContact in the 
> extractPhotos method , the photos are extracted and stroed in the tmp folder. 
> But duplicates of photos have created in tm because everytime the photo URL 
> is been a new one thus creating a photo and increasing the memory consumption 
> of the app. We ve found that app memory usage piles up when we try to load 
> the more no of  contacts which leads to low memory warning to the app and 
> thus killed by the OS. 
> This is the observation we found , Please let us know if we can do some 
> alternative.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to