Effects iOS
Effects / Guides / Cloud Filters / iOS

Download and apply a Nosmai Cloud Filter in iOS

Updated August 22, 2026

Request the iOS Cloud Filter catalog, show download progress, apply the selected filter, and reuse it when available.

Prerequisites

Request the catalog

NosmaiCloudFilterRequestOptions *options =
    [NosmaiCloudFilterRequestOptions defaultOptions];
options.page = 1;
options.limit = 20;
options.version = NosmaiCloudFilterVersion2;
options.filterType = @"effects";

[[NosmaiCore shared].effects
    getCloudFiltersWithOptions:options
                    completion:^(NSArray<NSDictionary *> *filters,
                                 NosmaiCloudFilterPaginationInfo *pagination,
                                 NSError *error) {
  if (error != nil) NSLog(@"Catalog failed: %@", error.localizedDescription);
}];

Download and apply

[[NosmaiCore shared].effects
    downloadCloudFilter:filterId
               progress:^(float progress) {
  NSLog(@"Download %.0f%%", progress * 100.0f);
} completion:^(BOOL success, NSString *downloadedPath, NSError *error) {
  if (success && downloadedPath.length > 0) {
    [[NosmaiCore shared].effects applyEffect:downloadedPath completion:nil];
  }
}];

Deduplicate taps by Cloud Filter identifier and apply only after the download completes successfully.

Handle cache eviction

Use isCloudFilterDownloaded: or getCloudFilterLocalPath: at the time of selection. The cache has no documented permanent TTL and iOS can reclaim cache storage. If the filter is unavailable, download it again. Persist the Cloud Filter identifier rather than the temporary download location.

Verify it worked

Apply the item again from cache after turning off network access. Do not issue a new download for an already cached item.

Common errors

SymptomFix
Empty catalogCheck cloud capability, category, pagination, and request error
Download stopsPreserve the current effect, show Retry, and do not use a partial path
Apply failsApply only the successful Cloud Filter download result

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved