1

In my app I need to use .ics files from url. I am getting url of .ics file from api and on taping a button, the url will open as:

UIApplication.shared.openURL(link.url!)

On hitting the url on browse, it will ask for adding .ics to calendar. This functionality is working with a demo link made by me..a .ics file that I have placed in dropbox and made a tiny url. But this functionality is not working with the url that I am getting from the api response. The url opens but it shows a blank page. What can be the reason??

UPDATE :->

There is popup blocked on my iPhone so, the url was opening but was showing blank page. Now I know there is nothing wrong with my code.

Rj19
  • 305
  • 1
  • 6
  • 20

0 Answers0