Code Monkey home page Code Monkey logo

Comments (9)

jshor avatar jshor commented on June 9, 2024

It's indeed an issue with downloadjs. Unfortunately downloadjs doesn't work with Safari. I have plans to fix this soon with FileSaver however (see: http://stackoverflow.com/questions/12802109/download-blobs-locally-using-safari)

from datebook.

tjcflys avatar tjcflys commented on June 9, 2024

I think that question might have been referring to Safari for OS. I tried filesaver and it does not seem to work. Filesaver's own documentation informs that it will not work with iOS. I decided to create the file server side and then serve it. Thanks for the help and good luck!

from datebook.

jshor avatar jshor commented on June 9, 2024

@tjcflys you're right, there are issues with iOS using FileSaver.js:

saveAs must be run within a user interaction event such as onTouchDown or onClick; setTimeout will prevent saveAs from triggering.

However I don't think this will be a problem with the dlIcal() function so I used angular-file-saver (a wrapper for FileSaver.js). It works on Safari desktop at least.

If you have a chance, could you please clone this repo and checkout to develop to see if the issue is fixed on iOS/safari? Thanks!

from datebook.

jshor avatar jshor commented on June 9, 2024

This appears to work in iOS versions I've tested - the latest fix is in v1.2.0

from datebook.

tjcflys avatar tjcflys commented on June 9, 2024

Sorry it took so long to get back to you man. I just tried 1.2.0 on 2 different Apple devices with no luck. Screenshot is attached if that helps.
image

from datebook.

jshor avatar jshor commented on June 9, 2024

Hey @tjcflys no worries - sorry to hear that the fix didn't work. I'm going to re-open this issue.

from datebook.

fierysolid avatar fierysolid commented on June 9, 2024

Any news on this? I've been googling like mad to find a solution.

from datebook.

jshor avatar jshor commented on June 9, 2024

@fierysolid unfortunately no, sorry. According to this it looks like iOS Safari will always render the file name as "Unknown."

I might end up implementing browser detection for Safari and having the menu not show options for icalendar on iOS safari.

from datebook.

jhallmusic avatar jhallmusic commented on June 9, 2024

Hi @jshor I noticed you closed this a couple months ago, is there still no solution? I'm still experiencing this, and it seems that maybe there's a fix from the link you provided above. thanks!

from datebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.