Re: iOS Calendar Question
Re: iOS Calendar Question
- Subject: Re: iOS Calendar Question
- From: Dave <email@hidden>
- Date: Thu, 19 Sep 2013 16:41:23 +0100
On 19 Sep 2013, at 15:28, Roland King <email@hidden> wrote:
> The answer to both of those is no, with a caveat or two.
>
Thanks a lot.
> The first is Apple's explicit permissions policy since iOS 6 (so 5 still works but 5 is a small installed base now). You have to ask permission the first time and permission can be revoked by the user randomly on the setup screen later. I don't honestly recall the details of how you keep track of your current state so you can enable/disable buttons or put up a sheet asking the user to turn it back on again (once they turn it off, going to setup is the only way to put it back).
You don't have to keep track of it, you just need to requestAccess in your App (as many times as you like), if the App already has permission you get "Granted" status, otherwise it puts up a dialog asking the User if its ok and you get back "Granted" if they allowed. Until you get "Granted" Status, any of the other API calls will return an error.
> This is a regrettable result of the kind of idiots who would, and probably did, write apps which spewed the calendar with 'events' full of click-to-pay links and other trash. So the rule is, you have to ask once, you can be shut off at any time, and once the user says no, they mean no, the app won't ask again on your behalf, they have to turn you back on from settings. Finding the nicest way to gracefully deal with that in an app is challenging.
Yes, plus it's a back door to reading info too.
>
> The second, there is no URL scheme for opening the calendar, certainly not a published one and the .. reverse engineered one you may find on the net only opens the calendar at a certain place, if it even works at all any more, doesn't let you add a putative event and switch to the app.
>
> On the bright side, a custom piece of UI to show the calendar event(s) designed for your app would probably look nicer than the stock calendar UI anyway and linking fully with the calendar in the app, depending on what it does, might give you some nice ways to show upcoming events for that app.
>
They are worried most people will say NO and want to avoid it if possible.
All the Best
Dave
>
> On 19 Sep, 2013, at 10:00 pm, Dave <email@hidden> wrote:
>
>> Hi,
>>
>> I've had a request for the following functionality and I'm not sure from the docs if it is possible, this App is for iOS 5+.
>>
>> The App has presented a number of events in a table view.
>>
>> The request is to add a button to an item that saves it to the User's Calendar. This seems easy enough, BUT:
>>
>> 1. If possible they don't want to have the "Application XXX has requested access to your Calendar" Alert.
>>
>> 2 They don't want it to just be added blindly to the underlying Calendar Database, but rather then want to launch the Native Calendar App with the Event Details and have the event all setup in the UI so that all the user has to do is tap Save or Cancel.
>>
>> I can't figure from reading the docs if this is possible or not? All the examples I've seen trigger the Alert Box the first time access is requested.
>>
>> All the Best
>> Dave
>>
>> PS.
>>
>> If the word "Cancel" was replaced with "Camel" in every button on every computer in the world, what percentage would notice and how would they interpret it?
>>
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden