forked from mirrors/linphone-iphone
Fix sharing from outside of the application
This commit is contained in:
parent
dfded88404
commit
2291d70411
1 changed files with 2 additions and 2 deletions
|
|
@ -434,7 +434,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
-(NSData *) nsDataRead {
|
||||
NSString* groupName = @"group.com.clavys.frogtrust.store";
|
||||
NSString* groupName = [NSString stringWithFormat:@"group.%@.linphoneExtension",[[NSBundle mainBundle] bundleIdentifier]];
|
||||
NSString *path =[[[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:groupName] path];
|
||||
NSString *fullCacheFilePathPath = [NSString stringWithFormat:@"%@/%@",path,@"nsData"];
|
||||
return[NSData dataWithContentsOfFile:fullCacheFilePathPath];
|
||||
|
|
@ -442,7 +442,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
|
||||
- (void)shareFile {
|
||||
NSString* groupName = @"group.com.clavys.frogtrust.store";
|
||||
NSString* groupName = [NSString stringWithFormat:@"group.%@.linphoneExtension",[[NSBundle mainBundle] bundleIdentifier]];
|
||||
|
||||
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:groupName];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue