When Im trying to load pictures from data I have seen big increase of memory usage.
Also API does not return all images with thumbnail even on sandbox environment website I see that thumbnail is generated. Can you please update documentation or example how to properly deal with attachments?
When I tried download missing thumbnails, API return error resource was not found, even on website is visible.
I have tried to print onAppear of each picture
print("THUMBNAIL: hasThumbnail: \(media.hasThumbnailPreview) hasThumbnailonServer: \(media.hasThumbnailOnServer) canDownloadThumbnail: \(media.canDownloadThumbnail) thumbnail: \(media.thumbnail) thumbnailImage: \(media.thumbnailImage)")
First image where Im missing thumbnail which is visible from web-sandbox return
THUMBNAIL: hasThumbnail: false hasThumbnailonServer: true canDownloadThumbnail: false thumbnail: nil thumbnailImage: nil and this log is basically for every single picture where Im missing thumbnail. So how do I get thumbnail if method for downloading thumbnail does not work?
If im trying to use data instead of thumbnailData property I see in log
2022-07-11 07:21:08.106152+0200 DholRainbow[31822:2512651] [File:127] Search for cached data for file 62b041c3c12a0d4594519b05 at url: file:///var/mobile/Containers/Data/Application/CCB48BF4-7B0F-40B3-B15D-F49407AB21CE/Library/Caches62b041c3c12a0d4594519b05.pvt
and this appear all the time when picture appear in the view which cause big memory leak.
When Im trying to load pictures from data I have seen big increase of memory usage.
Also API does not return all images with thumbnail even on sandbox environment website I see that thumbnail is generated. Can you please update documentation or example how to properly deal with attachments?
When I tried download missing thumbnails, API return error resource was not found, even on website is visible.
I have tried to print onAppear of each picture
print("THUMBNAIL: hasThumbnail: \(media.hasThumbnailPreview) hasThumbnailonServer: \(media.hasThumbnailOnServer) canDownloadThumbnail: \(media.canDownloadThumbnail) thumbnail: \(media.thumbnail) thumbnailImage: \(media.thumbnailImage)")
First image where Im missing thumbnail which is visible from web-sandbox return
THUMBNAIL: hasThumbnail: false hasThumbnailonServer: true canDownloadThumbnail: false thumbnail: nil thumbnailImage: nil
and this log is basically for every single picture where Im missing thumbnail. So how do I get thumbnail if method for downloading thumbnail does not work?If im trying to use data instead of thumbnailData property I see in log
2022-07-11 07:21:08.106152+0200 DholRainbow[31822:2512651] [File:127] Search for cached data for file 62b041c3c12a0d4594519b05 at url: file:///var/mobile/Containers/Data/Application/CCB48BF4-7B0F-40B3-B15D-F49407AB21CE/Library/Caches62b041c3c12a0d4594519b05.pvt
and this appear all the time when picture appear in the view which cause big memory leak.