Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Reply to Access to reminders
this is the answer!-(NSMutableArray*)getReminders { NSMutableArray *result = [[NSMutableArray alloc] init]; EKEventStore *eventStore = [[EKEventStore alloc] init]; NSCalendar *calendar = [NSCalendar currentCalendar]; NSDate *now = [NSDate date]; NSDate *startDate = [calendar dateBySettingHour:0 minute:0 second:0 ofDate:now options:0]; NSDate *endDate = [calendar dateBySettingHour:23 minute:59 second:59 ofDate:now options:0]; NSPredicate *predicate = [eventStore predicateForIncompleteRemindersWithDueDateStarting:startDate ending:endDate calendars:nil]; [eventStore fetchRemindersMatchingPredicate:predicate completion:^(NSArray *reminders) { for (EKReminder *reminder in reminders) { FSReminder *currentReminder = [[FSReminder alloc] init]; currentReminder.title = reminder.title; currentReminder.time = [NSString stringWithFormat:@%ld:%ld, reminder.startDateComponents.hour, reminder.startDateComponents.minute]; [result addObject:currentReminder]; } }]; return result; }
Topic: App & System Services SubTopic: General Tags:
Sep ’15
iOS 9 Beta 5- Calendar Privacy Access Alert not showing up on iPhone but is showing up on simulator
I'm having trouble trying to get my watchkit app to access the calendar. Before, when my phone was running ios 9 beta 3, I would get an alert asking for the app to access the calendar. Now in ios 9 beta 5, the same exact project won't create the privacy alert, so my app can't access the calendar.Specifically this is my code (this is in my watchkit app)if ([store respondsToSelector:@selector(requestAccessToEntityType:completion:)]) { NSLog(@Monkey); [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { NSLog(@Banana); /* more code here */ } }Essentially the app now only logs Monkey, but in ios 9 Beta 3 the app would log both Monkey and Banana. Basically the app is refusing to run anything in the block[store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error)Using breakpoints, the app just skips anything inside the block and the app continues to run. According to the documents I need this code when the app tries to ac
1
0
310
Sep ’15
Siri on Apple Watch (OS 1.0.1) won't launch apps after iOS 9 beta install
When I upgraded to iOS 9 Beta a couple of weeks ago (the last public beta build before the GM release today), my Apple Watch stopped being able to launch apps using Siri. For instance, if I asked Siri to Open Workout or Open Calendar app it tells me it doesn't look like I have an app named Workout or Calendar and then offers to find it in the App store using handoff.I've experimented with deleting and reinstalling a 3rd party app that had the problem, and after reinstalling it on the watch, Siri correctly launches the app again. Unfortunately, I can't use this method to fix the built-in apps.I've not yet tried reseting the Watch or doing anything more drastic yet. I had hoped updating to the GM build of iOS 9 today might have fixed the problem, but it didn't have any effect. Before I try to upgrade my watch to watchOS 2, I want to figure this out in case it persists. Does anyone have any experience successfully fixing this issue if you ran into it? Or does anybody have any suggestions? My ne
1
0
412
Sep ’15
3D Touch URL Shortcut Behaviours
I'd love to be able to define the 3D touch behaviours of a home screen URL Shortcut in a website's head.Idea's for 3D touch properties include a customer service phone shortcut, a link to a site's events calendar, or a link to that site's user account login.It's a quick way to achieve app-like conveniences.
1
0
248
Sep ’15
WatchOS 2 - Calendar data not Syncing
Phone on 9.0GM (13A340), Watch on WatchOS 2 GM (13S343). No calendars (iCloud or Exhcange) are syncing. New appointments freshly added don't sync to watch. Removing the calendars entirely from the iPhone and re-adding them back adds to the phone but still does not sync to watch. Watch restarted, Phone restarted - no change in behavior, no calendar data on the watch. Calendar settings in Watch App are Mirror my iPhoneWatch App >> General >> Reset >> Reset Sync Data does nothing.Re-paired Watch and setup as new: no fix.All other watch syncing (contacts, mail, etc.) seem to be working fine. Any ideas? Any others with similar behavior?
39
0
27k
Sep ’15
Reply to Calendar Does Not Sync iOS 9/WatchOS 2
Installed both of the GM candidates last night on my iPhone 6 and my Watch, and I still have this last nagging issue. I have both iCloud calendars as well as Google calendars on my Mac and my iPhone with no issues. I have tried the suggested process, but my Watch is still showing zero events.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
Thanks Max, I had tried exactly this. I have three calendars: 2 in iCloud - a personal one and a 'shared' one with Family accounts; and 1 Exchange calendar. Removing *all* calendars from my phone and re-adding only the 'iCloud' calendar had no change on the sync to Apple Watch.One interesting item is when I used Siri to add an appointment via the Apple Watch - it worked and created the appointment, but not on any calendar linked to the iPhone. It's almost as if the watch has it's own calendar that isn't syncing anywhere.-O
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
Some additional informormation:Removing all iCloud calendars from the iPhone caused a 'new' calendar to appear - a local iPhone calendar. This new calendar had the Watch created event on it. Also, adding/removing/editing events on this local iCloud calendar *does* sync to the Watch.I re-added the iCloud calendar and was prompted to Merge the local iPhone calendar. I did, and it was added as a new iCloud calendar. Syncing with this calendar still works between iPhone/iCloud/and Apple Watch *but* my other pre-existing iCloud calendars still do not appear or Sync with the apple watch.Still no fix for the problem, but at least something new.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
More information: Did a 'Reset Sync Data' in the Apple Watch application. This cleared all the data from the Watch and now no data at all, including the recently working calendar which was merged into iCloud, syncs on the Watch. Back to the starting state.Removing and re-adding the iCloud calendars from the phone had no effect.Next: will try deleting the extra iCloud calendar, then delete all calendars again from iPhone. Re-add the iCloud on the iPhone. then re-pair the watch again.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
Some progress, possible coorelation on the bug.Removing calendars, repairing, etc. had no effect. The iPhone had an MDM profile installed via Airwatch which provided access to the Exhcange account. The exchange account was not set to sync calendar, so I had ruled that out early. In my last test I completely unenrolled the device and re-added the iCloud calendar. it worked - iCloud calendar was back. I then re-enrolled the device in MDM and Exchange, poof - all calendars on the Apple Watch dissapeared. Definately some coorelation here with MDM and/or the Exchange profile.More as I figure it out.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
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 OS2there'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 workLOGrequest per
3
0
1.1k
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
Good news Developer Friends!I've determined the root cause.This is caused by Secure Open In. Basically you must allow Allow Documents from Managed Sources in Unmanaged DestinationsEssentially probably because of Handoff or something related to it, it views your Calendar as a Managed Data Point and your device (Apple Watch) as an unmanaged location.The main reason for this is that the way file transfer works between Apple Device and Apple Watch is why this behavior would occur. You can read more about it here: https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/DesigningaWatchKitApp.htmlThe key item to understand with it is: At runtime, you share files between processes by reading and writing those files in the shared container directory. To access the container directory, use the containerURLForSecurityApplicationGroupIdentifier:method of NSFileManager to retrieve the base URL for the directory. Use the provided URL to enumerate the directory contents, or
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to WatchOS 2 - Calendar data not Syncing
Thanks Jon for your help in working throught the test cases to identify the cause. I want to highlight that this setting has been around since iOS7 and as we both know, this is not the behavior seen in WatchOS 1, it also essentially makes the Apple Watch Calendar useless in any corporate environment which is using this setting to help enforce DLP. I've reported this in bug 22648317
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
icloud Calendar sync gives a 403 error
Hi,I just updated El Capitan latest beta to Golden Master... But now I have added a new Calendar subscription and I get the following error:Toegang tot account 'iCloud' is niet toegestaan. De server reageerde met: '403' op de bewerking 'CalDAVAddSubscriptionCalendarQueueableOperation'.English translation:Access to account 'iCloud' is prohibited. The server reacted with: '403' on the operation 'CalDAVAddSubscriptionCalendarQueueableOperation'.Is this a bug? What should I do?
0
0
380
Sep ’15
Can't get Min/Max/Avg Heartbeat HKUnit.count
So, I have three statistics queries running to get the min, max and average heartbeat per minute over the past two days of samples.The query sort of runs fine in terms of it returns a results object with a value (Value looks wrong, but not the point at this point)But when I call resultQuantity.doubleValueForUnit(HKUnit.countUnit()) if throws a NSInvalidArgumentExceptionExtension[25004:6643049] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Attempt to convert incompatible units: count/s, count'I don't understand what is wrong here. Here is my code bolding the line that throws the exception. func getMaximumHeartBeatData() { let predicate = getHeartBeatPastTwoDaysPredicate() createAndExecuteQueries(predicate, option: HKStatisticsOptions.DiscreteMax) { (query, results, error) -> Void in if let avgHeart = results?.maximumQuantity() { self.maximumHeartBeat = Int(avgHeart.doubleValueForUnit(HKUnit.countUnit())) } else { self.maximumHeartBeat = 0 } } } func createAndExecuteQue
1
0
1.6k
Sep ’15