Create subscription calendar cal.ical from my app with url

Hello,

In the calendar app people can subscribe to calendars from the web and have the events in the calendar, but can my Xcode app generate a local url with an ical file that can be subscribed to? Just for the user on the device with the app, not on the internet?

For example my app when run creates an ical file of events that repeat each year, like international days of the year and puts it somewhere like in the group folder or somewhere behind the scenes and then the user can click that link from within the app or copy and past it into the calendar app by adding a new calendar and putting in the url?

I don't want to put the url online because the information is private and just for the user of the device.

no such possibility

Create subscription calendar cal.ical from my app with url
 
 
Q