Search results for

calendar

1,869 results found

Post

Replies

Boosts

Views

Activity

Calendar in iOS14
Is it me, or has making an appointment with Calendar in iOS14 heavily changed? Setting a time is a real ***** - and it was so easy and smooth! Could be that I missed something and that it's possible to keep things as they were. But if that's impossible, I'd like to go back to the old Calendar...
3
0
865
Apr ’21
How to increase notification badge number dynamically when local notification is delivered?
My App sets up multiple local notifications via a loop based on a calendar date and time (calendar trigger). While everything else is working correctly with this, I cannot seem to get the badge number to increment properly. I tried setting this up via content.badge but what happens is... User gets notification 1,2,3,4,5 and badge number gets set to 5 content.badge = self.counter User then clears notifications 2 and 3 - and badge number is now 3 via my code (UIApplication.shared.applicationIconBadgeNumber - 1) When the next notification (number 6) pops up, the badge number SHOULD show 4. It doesn't. It shows 6 because that's what was set via content.badge What is the proper way to increment the badge number? I've looked at various posts here but they're for push notifications. Mine is for a local notifications. Can I set/update badge number WHEN a notification is actually delivered? ...Or does notification manager somehow handle this automatically?
7
0
7.1k
Apr ’21
Reply to How to increase notification badge number dynamically when local notification is delivered?
@Claude31 ::: Would this work with something like I'm doing? Remember, I set up all the notifications (50 of them) in my App while it is running. Then, the user exits (most likely) and just waits for the notifications to be delivered at their set calendar date/time. I know how to look at delivered notifications while the App is open but I'm not sure how I would code this in my UNUserNotificationCenterDelegate Class if I wanted to check this and then somehow have the correct badge number calculated (Note: UNUserNotificationCenterDelegate is where I can check to see how users interacted with the notifications and respond via custom actions that I set). If I tried a monitoring loop, wouldn't that only work if the App is open? Where in my code would I put that?
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
How to sync iCloud Calendar with PHP Project
Hi,i develop an PHP Web App, where users can create and edit events inside.Now i would like to sync these events with the iCloud Calendars from each user.The PHP Web App should read,create and edit the events from the icloud calenders.Is that possible?I could realy find a API or Docomentation.It would be important that i can make that happend without the use of Xcode.Thanks 🙂
3
0
7.8k
Apr ’21
Reply to Xcode Hangs on Start
This happened to me as well. I had accidentally checked ok to allowing Xcode to have access to couple of the secure/ private files on my computer. They specifically were the: Contacts, Calendars and Reminders. I followed Petrychyn's suggestion (thumbs up!) and found the same thing - just unchecking the access permissions box doesn't fix the issue. You do need to run the terminal command and include the app bundle id - in this case it's com.apple.dt.Xcode - and initially run it in sudo. sudo tccutil reset AddressBook com.apple.dt.Xcode sudo tccutil reset Calendar com.apple.dt.Xcode sudo tccutil reset Reminders com.apple.dt.Xcode Just a note: Some of the category names are not the same as titled in the privacy table list. eg Contacts - AddressBook. Here is the list for reference: Accessibility AddressBook AppleEvents (i.e. Automation) Calendar Camera Microphone Photos Reminders ScreenCapture (for the Screen Recording list) SystemPolicyAllFiles (for the Full Disk Access list) SystemPol
Apr ’21
Reply to How to increase notification badge number dynamically when local notification is delivered?
So, I'm running a loop that basically sets 50 notifications at a time. In the loop, I set the content, let content = self.notificationContent(title: my title, body: whatever else I want to say) content.threadIdentifier = my.thread content.categoryIdentifier = my.category content.badge = self.counter as NSNumber // -- this counter gets incremented for each iteration of the loop //.. Calendar trigger var dateComponents = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute, .second], from: myTime) let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: false) let identifier = message.notify.reset(self.notifyNumber) let request = UNNotificationRequest(identifier: identifier, content: content, trigger: trigger) //.. Add it to notification center UNUserNotificationCenter.current().add(request) { (error) in self.printError(error, location: *** Add request for identifier: + identifier) } Then, once that one is added, I increment the counter and add the next one. I
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
Reply to Month/Day/Year Order from Locale?
does this look like a valid implementation? It’s hard to say without knowing more about your requirements. There’s a lot of code in there (all the gregorianForcedLocale(using:) stuff) that looks like test code rather than something you plan to deploy. So, if the goal is to print a localised date that includes the Gregorian month and the day, this is what I’d write: let df = DateFormatter() df.calendar = Calendar(identifier: .gregorian) df.setLocalizedDateFormatFromTemplate(Md) print(df.string(from: Date())) Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Apr ’21
Reply to Month/Day/Year Order from Locale?
Here's some modern Swift code based on @eskimo's recommended approach. My requirement was to localize a month/day string, e.g. Apr 28, so it would appear as 4/28 in the U.S., but reformatted as 28/4 or similar in other locales. The +dateFormat(fromTemplate:options:locale) function seems to be smart enough to flip the M/d around to match the locale. @eskimo, does this look like a valid implementation? import Foundation let now = Date() for localeIdentifier in Locale.availableIdentifiers { let locale = Locale(identifier: localeIdentifier) let forcedLocale = gregorianForcedLocale(using: locale) let dateFormat = DateFormatter.dateFormat(fromTemplate: M/d, options: 0, locale: forcedLocale)! let formatter = DateFormatter() formatter.calendar = Calendar(identifier: .gregorian) formatter.dateFormat = dateFormat let dateString = formatter.string(from: now) print(localeIdentifier + , + dateFormat + , + dateString) } func gregorianForcedLocale(using locale: Locale) - Locale { let localeIdentifier = locale.ide
Apr ’21
Reply to Subscribed calendar not updating for IOS 14 users
When I tried to write a PHP service that makes calendar files, I've met such a problem. I think it's Apple Calendar bug that we cannot fix, because the PHP-generated calendar shows up properly when I use http:// to get it. But when I use webcal://, it shows in Calendar list, even can be refreshed (and server detects the refresh), but no events shown up. For more details, search Subscribed calendars not shown on my device, but they can be opened manually on Ask Different.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Reply to Subscribed calendar not updating for IOS 14 users
Does anybody have a solution for this issue. Gregmee haven’t had luck figuring out how to fix this. I still manually disable the calendar and then re-connect and the the updates are pulled correctly - but the daily changes are missed this way :( I really hope that apple may fix this issue - but it looks like it is being left at the bottom of the list of “things-to-do”. Best wishes, /L
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Reply to Date in menu bar doesn't show month
I seem to have resolved this. I noticed that the Show date checkbox inside of Date & Time seemed to have become unchecked somehow even though I never touched it. Changing the calendar inside of Language & Region seems to have gotten the thing into a weird where just the 4 is shown in the menu bar without the Apr and the Show date checkbox is unchecked. It's very easy to reproduce but this bug isn't getting fixed.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Date in menu bar doesn't show month
I'm running 10.14.6. I was looking through the calendars in Language & Region settings (such as Coptic, Hebrew, Persian, etc) just because I was curious to see what they looked like. Then I changed back to Gregorian (the default) and found that the month (in this case Apr) was missing from the menu bar. I tried restarting but that didn't help. I also tried fiddling around some more in settings but it's still the same. For some reason, this thing won't let me add the URL so I put a space between the h and the t. h ttps://i.imgur.com/o0Ovonu.png
1
0
562
Apr ’21