GithubHelp home page GithubHelp logo

Comments (4)

FledgeXu avatar FledgeXu commented on September 27, 2024 1

@kelson42
For now, this is the only way to see the progress of the download:
IMG_0580
When you want to download a large zim file, it's annoying to have to repeat this process of checking progress several times.

Once we add the Dynamic island and Live Activities support, we can show this progress outside the app, so users don't need to open the app and check the progress of the download anymore.

like this:

(iPhone 14 Pro or later)
image

(All users)
image

from apple.

kelson42 avatar kelson42 commented on September 27, 2024

@FledgeXu This is a technical, solution driven, description, please explain:

  • what is the problem
  • how should it looks like, once implwmented

from apple.

automactic avatar automactic commented on September 27, 2024

This is a cool idea, I was looking into the same thing earlier, and I bet it would be very fun to use if I can get it working. However this is not currently possible within current constraint of Live Activities.

From Apple's developer documentation site [link]:

Each Live Activity runs in its own sandbox, and β€” unlike a widget β€” it can’t access the network or receive location updates. To update the dynamic data of an active Live Activity, use the ActivityKit framework in your app or allow your Live Activities to receive ActivityKit push notifications as described in Updating and ending your Live Activity with ActivityKit push notifications.

Live activities cannot access network (which means I cannot query the network interface for download task progress), can be updated only via server side push notification (which does not make sense for action happening on device), or via ActivityKit (which means the app has to be running)

It seems like "timer" live activities can update every second, but file download progress cannot be simply implemented as a timer.

We'll have to see if this change in WWDC 23 / iOS 17, but sorry there isn't anything I can do right now

from apple.

automactic avatar automactic commented on September 27, 2024

I am moving this to Discussion -> Idea, because this is an interesting idea, but nothing to be done right now

from apple.

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.