Search code examples
iosweb-scrapingcalendaricalendar

How to publish a .ics file into an iPhone Calendar?


I’m trying to target iPhone users and I recently discovered about exportable .ics files as a method to add events/calendars. I have searched Internet for a while and I didn't find a good way to import .ics files into my local calendar on IPhone. The following methods were seen:

  • Going to Settings > Passwords > Subscribe calendar > Other, but I can't do it since I have a local .ics file, and things like Pastebin doesn't seem to work. I also don't have this file in my iCloud account and I can't export (no options) .ics files in there.

  • Mailing myself with the local .ics file. Firstly, I had "Gmail" application on my Iphone, and didn't see it working. Now, I have reinstalled the "Mail" on Iphone, and it doesn't seem to interact with my file, it only says "Download" but in fact it doesn't download anything.

Please, remember that I have to do this my way. I have been scraping a seminars website in order to get my events info and then I'm on the last step but I couldn't complete it without this task.


Solution

  • I have found a working solution:

    1. Open the target ICS-file in a text editor (NotePad++, for example).
    2. Copy all ICS contents to a Windows clipboard.
    3. Paste ICS contents to a bar-code creator (Free QR Creator, for example) and create a large QR code image.
    4. Open iOS Camera app and point to the screen.
    5. The calendar event box will appear at the top of the screen.

    This works at least in iOS 13.7.