I need to check full access for custom keyboard extension. I found this link.
How to check the "Allow Full Access" is enabled in iOS 8?
It say we c
+(bool)fullAccessAccessible{
NSUserDefaults *myDefaults = [[NSUserDefaults alloc]
initWithSuiteName:APP_GROUP_NAME];
NSString* test_key = @"extension test full access";
[myDefaults setBool:TRUE forKey:test_key];
BOOL res = [myDefaults boolForKey:test_key];
return res == TRUE;//set and get compare
}
You can try reading a value from the shared NSUserDefaults
- if the value is null, then allowFullAccess is off
Or you can try reading files from the shared file system using containerURLForSecurityApplicationGroupIdentifier