Comments (7)
@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.
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.
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.
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.
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.
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.
Ahh nice, thanks for clarify!
from capacitor-updater.
Related Issues (20)
- feat: Support React native HOT 31
- iOS reviewers wanted for partial update PRs HOT 24
- feat: Check for updates periodically when app is open HOT 6
- bug: failed download because of checksum HOT 4
- feat: disable stats HOT 4
- bug: Fatal error: appId is empty HOT 27
- bug: getLatest returning old data HOT 1
- bug: Crash android 14 HOT 5
- feat: Load other pages as default instead of `index.html`
- feat: allow update endpoint to return custom json data object HOT 2
- feat: set channel in capacitor config HOT 4
- bug: After i update using download method ...the version didn't updated...it still remains in previous version HOT 1
- feat: dynamic download URL configuration HOT 3
- bug: Race condition in backgroundDownload() HOT 1
- bug: iOS Simultaneous accesses to 0x60000023c990, but modification requires exclusive access HOT 7
- bug: Updated bundle scripts does not run (index.js does not exists, there is no such file) HOT 1
- it wont update the app it keep show unknown version
- feat: Capacitor 6 Support HOT 5
- bug: IOS bundle resets after closing app. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-updater.