To Safari - probably not. You’d have to bring up the document interaction 
controller, which would bring up any app that supports ICS - which would bring 
up the Calendar app. That would do what you want, but it would also invoke a 
lot more UI…which seems like it’d be simpler to just allow access.

On Oct 2, 2013, at 11:44 AM, Dave <d...@looktowindward.com> wrote:

> 
> On 1 Oct 2013, at 18:26, Marcel Weiher <marcel.wei...@gmail.com> wrote:
> 
>> 
>> On Oct 1, 2013, at 13:02 , Dave <d...@looktowindward.com> wrote:
>> 
>>> 
>>> http://m.gunwharf-quays.com/whats-on/policing-through-ages
>>> 
>>> If you open the above link on an iPhone and then click the Add to Calendar 
>>> button, you will that it appears to add an event to the calendar WITHOUT 
>>> asking the user for permission! How does it manage to do it? 
>> 
>> As far as I can tell, that link delivers an ics file, “event.ics”, which is 
>> then opened automatically by the OS (also happens for ics attachments in 
>> Mail).  Since this only writes to the calendar and the original stink that 
>> caused restrictions was about reading calendar/address book info and 
>> uploading that to a server, I guess Apple finds that OK.
>> 
>> Now I don’t remember any sanctioned ways to open a file without user 
>> interaction, so this might not actually help you...
>> 
>> Marcel
>> 
>> 
>> —— snip —— 
>> BEGIN:VCALENDAR
>> VERSION:2.0
>> CALSCALE:GREGORIAN
>> PRODID:-//hacksw/handcal//NONSGML v1.0//EN
>> METHOD:PUBLISH
>> BEGIN:VEVENT
>> DTSTART;VALUE=DATE:20131005
>> DTEND;VALUE=DATE:20131006
>> SUMMARY:Policing Through the Ages 
>> LOCATION:Gunwharf Quays
>> DESCRIPTION:Policing Through the Ages  - 
>> http://m.gunwharf-quays.com/whats-on/policing-through-ages
>> URL:http://m.gunwharf-quays.com/whats-on/policing-through-ages
>> END:VEVENT
>> END:VCALENDAR
>> —— snip —— 
> 
> So, I could send a pre-made .ics file to Safari? 
> 
> Dave
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net
> 
> This email sent to a...@webis.net

Alex Kac - President and Founder
Web Information Solutions, Inc.

"The person who is not hungry says that the coconut has a hard shell."
-- African Tribal Saying







_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to