Entry to Contacts Caught on “Personal Entry” in Swift/Goal-C IOS challenge in Settings > Privateness and Safety -> my App

0
1
Entry to Contacts Caught on “Personal Entry” in Swift/Goal-C IOS challenge in Settings > Privateness and Safety -> my App


My app gives person the choice to import Contacts. Once you attempt to entry Contacts, Apple reveals its privateness dialog. Then if the person selects Permit Entry and, in flip, Share All Contacts, full entry is granted.

After the preliminary choice, if something lower than full entry is granted, I’ve code that sends the person to Settings the place they need to have the choice to decide on once more between None, Restricted Entry and Full Entry as beneath for Fb. In the event that they select to not go to settings, I present them Apple’s contact picker.

Nonetheless, generally for my app, as a substitute of displaying what Fb reveals, it reveals “Personal Entry” with no means to decide on an alternative choice. May this be as a result of I briefly allow them to use the Contact Picker? I do not assume that must be the case. Is that this an Apple bug?

Personal Entry isn’t one of many regular 3 choices as proven for Fb, None, Restricted Entry and Full Entry. I am unsure what it’s.

Even once I delete the app from the telephone, and reinstall it utilizing Xcode, I’m presently getting the identical downside.

Can anybody recommend what may very well be inflicting this and, even when it’s a bug on Apple’s half, a workaround to stop it?

 (IBAction)seeSystemContacts:(id)sender {
    if ([self fullAccessToSystemContacts]) {
        [self launchImportContactsVC];//This takes person to a VC the place they'll see contacts
    }
    else { //Following launches a dialog with two choices
        [[Utilities shared] getUserInputOnVC:self
                                       title:@"See Contacts"
                                        physique:@"Permit app to entry your contacts in Settings" buttons:@[@"Not now", @"Settings"]  completion:^(NSInteger alternative){
            if (alternative==1) {
//That will be Go to Settings
                [self gotoSettings];
            }
            else {
//Not now
//Third Fallback in the event that they click on Not Now, present them contactPicker choice
                [[ContactPicker shared] openContactPickerOnViewController:self completion:^(NSArray *contacts){
                    [self.fetchedResultsController performFetch:nil];
                    [self.tableView reloadData];
                }];
            }
 
        }];
        
    }
}


-(BOOL)fullAccessToSystemContacts {
    CNContactStore *retailer = [[CNContactStore alloc] init];
    CNAuthorizationStatus standing = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts];
        if (standing == CNAuthorizationStatusAuthorized) {
           
            return YES;
        }
    return NO;
}

Thanks upfront for any recommendations.

enter image description here
enter image description here

LEAVE A REPLY

Please enter your comment!
Please enter your name here