IOSAD-150 Getting app group container URL. IOSAD-150
authorDirk Zimmermann <dz@pep.security>
Wed, 09 Oct 2019 09:30:57 +0200
branchIOSAD-150
changeset 13040f6add4c3cce
parent 1303 b18cc896c191
child 1305 af8a3f033c00
IOSAD-150 Getting app group container URL.
pEpObjCAdapter/PEPObjCAdapter.m
     1.1 --- a/pEpObjCAdapter/PEPObjCAdapter.m	Wed Oct 09 09:30:57 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPObjCAdapter.m	Wed Oct 09 09:30:57 2019 +0200
     1.3 @@ -87,12 +87,16 @@
     1.4   */
     1.5  + (NSURL *)createApplicationDirectory
     1.6  {
     1.7 +    NSString *appGroupId = @"group.security.pep.pep4ios";
     1.8 +    NSFileManager *fm = [NSFileManager defaultManager];
     1.9 +    NSURL *containerUrl = [fm containerURLForSecurityApplicationGroupIdentifier:appGroupId];
    1.10 +    NSLog(@"containerUrl |%@|", containerUrl);
    1.11 +
    1.12      NSString *bundleID = [[NSBundle mainBundle] bundleIdentifier];
    1.13      if (!bundleID) {
    1.14          // This can happen in unit tests
    1.15          bundleID = @"test";
    1.16      }
    1.17 -    NSFileManager *fm = [NSFileManager defaultManager];
    1.18      NSURL *dirPath = nil;
    1.19      
    1.20      // Find the application support directory in the home directory.