Code Monkey home page Code Monkey logo

Comments (7)

riderx avatar riderx commented on June 10, 2024 1

@FernetB correct it doesn't block the user, you have to do it.
I wanted to create this solution, but I cannot do it with Capacitor, or I cannot understand how.

The update takes a few seconds at home on your Wi-Fi, on the go it's another story.
Depending on your users and their device, it can be long.

So the user will start using it and then got the restart, you are correct.

With direct update, as same without, the check is done at first start and every foregrounding of the app.
The only difference is in direct mode the update is applied directly, instead of waiting for the next background.

from capacitor-updater.

FernetB avatar FernetB commented on June 10, 2024

Hi! I saw recently that there is a config
"CapacitorUpdater": { "directUpdate": true, }
that does that.
My question is, can i put something like o loading screen with text for that, and where i can find the progress % to do that?

from capacitor-updater.

riderx avatar riderx commented on June 10, 2024

You have the event listener with the download % for that.
I developed this for a big client bug we stopped using it, that makes terrible experience for users, they download the app then open it and wait again for more download, this is also against app store rules outside video games.

from capacitor-updater.

FernetB avatar FernetB commented on June 10, 2024

Sorry, but could you specify what is exactly against the rules?

Additionally, how do you manage to ensure that all users immediately receive the latest updates, especially in scenarios requiring urgent bug fixes that cannot wait for users to switch their apps from background to foreground to initiate the update?

from capacitor-updater.

riderx avatar riderx commented on June 10, 2024

Yes,
Display to the user when it opens the app a screen saying "download update" is against the rules.

You need to find alternative things saying "tailoring your experience" or something like that, but at any moment, Google and specially Apple can block you to do app store update.

If you use direct update, the check will be done next time they open the app, and block them to using the app until the update is done.

There is no process to "immediately receive the latest updates" at any given time.

I did some R&D on this but that not an easy task, the best way would be to implement background notification.
But that means The server has to be connected to your Apple Account for the notification system, and you cannot use Firebase, it has to be implemented from the ground.

So because of that, right now, we have only this system who is equivalent to all other providers and making the update process already way better than: waiting days with Apple and Google way.

from capacitor-updater.

FernetB avatar FernetB commented on June 10, 2024

Hey, i didnt understand this:

and block them to using the app until the update is done.

I tried the direct update and does not block the user, it does all from behind until the new app is reloaded. What is the problem to not block the user on that? it takes just a few seconds to do the update, I guess that is if the app is too heavy and u let the user use it and then sundenly is restarted i'm right?

And another question that i have is:
in directUpdate: true mode, the app checks for a new live update only on the first start, or once is opened when you go from background to foreground checks again if is a new update available?

from capacitor-updater.

FernetB avatar FernetB commented on June 10, 2024

Ahh nice, thanks for clarify!

from capacitor-updater.

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.