Offline first, eventually everywhere.
Storing images and videos in Realm objects is technically possible, but in order for any mobile application to scale well, robust asset management is a must. Cosync Storage takes the headache out of storing, uploading, assigning urls, updating objects and syncing assets between all of your users’ devices.
Store the asset locally and write the local file url to a CosyncAsset Realm object with a status of local. When the device has signal, Cosync Storage takes care of the rest.
Cosync uploads the assets to your Amazon AWS S3 instance and updates your object URLs and updates the object status to completed when assets are ready to sync between devices.
If your application needs assets to expire after a given amount time, Cosync can also take care of asset management and updating your objects to reflect the availability of your assets.