HomeiOS DevelopmentEntry to Contacts Caught on "Non-public Entry" in Swift/Goal-C IOS undertaking in...

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


My app provides consumer the choice to import Contacts. While you attempt to entry Contacts, Apple exhibits its privateness dialog. Then if the consumer selects Enable 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 consumer 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.

Nevertheless, typically for my app, as a substitute of exhibiting what Fb exhibits, it exhibits “Non-public Entry” with no capacity to decide on another choice. May this be as a result of I briefly allow them to use the Contact Picker? I do not assume that needs to be the case. Is that this an Apple bug?

Non-public Entry will not be one of many regular 3 choices as proven for Fb, None, Restricted Entry and Full Entry. I am undecided what it’s.

Even after I delete the app from the telephone, and reinstall it utilizing Xcode, I’m at present getting the identical drawback.

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 consumer 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:@"Enable app to entry your contacts in Settings" buttons:@[@"Not now", @"Settings"]  completion:^(NSInteger alternative){
            if (alternative==1) {
//That might be Go to Settings
                [self gotoSettings];
            }
            else {
//Not now
//Third Fallback in the event that they click on Not Now, present them contactPicker possibility
                [[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 prematurely for any solutions.

enter image description here
enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments