ios – Is there any limitation/ safety danger by utilizing App Group Listing in comparison with Software Help Listing to retailer all my app associated information?

[ad_1]

All of the whereas, I’m storing my app associated information (photographs, audio recordsdata, zip recordsdata, …) in Software Help Listing

static func getUserDataDirectory() -> URL {
    let fm = FileManager.default
    do {
        let userDataDirectory = strive fm.url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
        return userDataDirectory
    } catch {
        print("(error)")
    }
    
    fatalError()
}

One of many fundamental purpose I select Software Help Listing, over Doc Listing is that,

  1. I don’t need third social gathering app to entry my app content material.
  2. I don’t need person to entry the app information manually, with out going by means of my app.

Now, I need to create 2 extensions for my app

  1. Share extension – In order that person can share information from third social gathering app to my app.
  2. Widget extension – In order that person can have my app widget.

I plan emigrate all my present current information in Software Help Listing, to App Group Listing, in order that my extensions can have entry to all app information.

static func getUserDataDirectory() -> URL {
    let fm = FileManager.default
    
    let userDataDirectory = fm.containerURL(forSecurityApplicationGroupIdentifier: "group.com.xxx.yyy")
    
    userDataDirectory
}

Nevertheless, I used to be questioning, by doing so, is there any technical limitation, or safety danger concerned?

Will third social gathering app capable of entry my App Group Listing, or will person capable of entry my App Group Listing information with out going by means of my app?

Thanks.

[ad_2]

Leave a Reply