EKEventStore requestAccessToEntityType:EKEntityTypeEvent - doesn't work in watchOS2

hello. first of all sorry for my english.


i'm writing calendar app using EventKit in watch OS2


there's some problem with getting Permission.


[self requestAccess:^(BOOL granted, NSError *error) {
        NSLog(@"entry callback [watch overide]");
  
            NSLog(@"requestAccessToEntityType callback [watch overide] errer? %@",error);
       
            if (granted) {
                /
                NSLog(@"YYYYYYYYYYYYEEEEEEEEEEEESSSSSSSSSSSS");
           
            } else {
                /
                NSLog(@"NNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOO");
            }
               
   
    }];


- (void)requestAccess:(void (^)(BOOL granted, NSError *error))callback;
{

    EKEventStore* eventStore;

        if (eventStore == nil) {
            eventStore = [[EKEventStore alloc] init];
        }

        NSLog(@"request permission with %@",eventStore);
        if ([eventStore respondsToSelector:@selector(requestAccessToEntityType:completion:)]) {
            NSLog(@"requested! %@",callback);
            [eventStore requestAccessToEntityType:EKEntityTypeEvent completion:callback];
        
        } else {
            /
            NSLog(@"fail not response on delegate");
        }

}


in simulator. it work firsttime after Reset contents.


but in real device (watch OS2 GM)


it doesn't work


LOG

request permission with %@ -> requested! %@" -> end



[eventStore requestAccessToEntityType:EKEntityTypeEvent completion:callback];


method doesn't call 'callback'


no problem anyone?

I'm having similar issues, but it's not reproducible and only happens on some devices.

Did you update straight from watchOS 1.0.1 to the 2.0 GM or did you have the betas installed before?

I am having the same issue. My completion block never gets called. I installed the 2.0 GM straight from 1.x (not sure what exact version, but it was stock the WatchOS).


~Gene

i've installed the 2,0 GM from 1.0.1 straight.

EKEventStore requestAccessToEntityType:EKEntityTypeEvent - doesn't work in watchOS2
 
 
Q