video - iCloud accounts + my server accounts + linking -


I am working on an iOS project where a user will be given a chance to record the video. These videos will be part of the user's account. User account information such as name, email, avatar image, video list etc. will be saved in my server. Since my client is buying low storage space in the server, it does not want to have video files in the server (each video is only 20 seconds).

So I came up with using iCloud storage space for video saving. Now user accounts in the app comes from two places 1. User Meta Data - My Server 2. Recorded Video - iCloud Server

Now I have a few questions about how iCloud accounts can be managed with the server account.

  1. How do I link an iCloud account with a server account?
  2. When a user changes the user's iCloud account, but uses the old server account then how to handle it.
  3. How does the user agree to save video files in iCloud,
  4. How to handle when iCloud exits the memory.

    Does anyone who has worked on iCloud answer me these types of questions, it would be really useful to me.

    How do I account with iCloud account?

    You do not do that, there is no public API that can link your server to iCloud and use the user's files. ICloud is not a web service, it is a system to sync between files and other data between iOS devices used by the same person.

    How the user changes your iCloud account in the device, the old server account.

    In the app you can get a unique identifier for iCloud account by calling [[NSFileManager defaultManager] ubiquityIdentityToken] . You can save the price, and then check to see if the current value matches the old one or not. If they are different, then the user has changed the accounts. There is also a notification called NSUbiquityIdentityDidChangeNotification which tells you that the app is running, the account changes.

    This identifier will be different on different devices, even for the same iCloud account. It is not useful to leave on that device, where you can get the value of it.

    How to handle when users do not agree to save video files in iCloud?

    Then ... do not save them there. Your only option is to save the video on the user's device or upload it to a server elsewhere. If your server can not handle them, then you have to find another address.

    When iCloud exits the account then how to handle it.

    You will not be able to save any other files in the user's iCloud account. Your only real option is to ask them to delete some previous data to create space.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -