Comments (28)
This is R&D for auto-update, note for manual is it's already possible.
from capacitor-updater.
/bounty $100
from capacitor-updater.
π $100 bounty created by riderx
π If you start working on this, comment /attempt #72
to notify everyone
π To claim this bounty, submit a pull request that includes the text /claim #72
somewhere in its body
π Before proceeding, please make sure you can receive payouts in your country
π΅ Payment arrives in your account 2-5 days after the bounty is rewarded
π― You keep 100% of the bounty award
βΉοΈ If something is not clear ask before working on it, otherwise your chance to rework it is high
π¨βπ©βπ§βπ¦ Join the Discord to get help
π Thank you for contributing to Cap-go/capacitor-updater!
Attempt | Started (GMT+0) | Solution |
---|---|---|
π’ @ayewo | Aug 9, 2023, 7:40:00 PM | #242 |
from capacitor-updater.
Hello, I'd like to work on this issue :)
from capacitor-updater.
Hi @Alcadeus0 that awesome ! please feel free to ask here any missing info
from capacitor-updater.
@riderx How do I reproduce this issue?
from capacitor-updater.
@Alcadeus0 you can use the demo app:
https://github.com/Cap-go/demo-app
Acceptance criterial:
- updated should be download and apply at first launch
- a loader is visible while the download happen
- works both in ios and android
- no code duplication
from capacitor-updater.
@riderx running npx cap verify
gives me
why isn't the pod being found?
from capacitor-updater.
this command run from the CI and in local, did you run the command in the root folder?
from capacitor-updater.
yes I'm running in the root folder, maybe that's why
from capacitor-updater.
mmm ok sorry, you have to have the package manager cocoa pods and use a mac.
This task is pretty hard, good knowledge in ios/android is recommended.
plus you have to understand capacitor env
from capacitor-updater.
@riderx i see that's understandable. I use Ubuntu so it won't be possible even if i decide to use a vm with mac OS. You can un-assign me from the issue
from capacitor-updater.
I can grant you of half the price if you find a solution in android
from capacitor-updater.
Sure, I'll give it a shot
from capacitor-updater.
Hi @meilechwieder,
Regarding your earlier comment:
This is R&D for auto-update, note for manual is it's already possible.
If you have a moment, mind sharing more details how you currently do it manually?
from capacitor-updater.
Here goes nothing while I /attempt #72 .
Options
from capacitor-updater.
Hey @ayewo I made half of this working, it's done in IOS, I still have some issue in Android.
Have you something on your side ?
Maybe we can join forces
from capacitor-updater.
Hi @riderx
Maybe we can join forces
You've already done 50% do I really have a choice π?
Since you've coded the iOS implementation, perhaps you could share it so I can translate it for Android.
from capacitor-updater.
I'm sorry, I really needed it, and a shower showed me the way ^^.
I just finished the Android part as well 5 min ago.
So the bounty in this state is not available anymore.
I would more now try to battle test it, and be sure this work 100% of the time.
Can you help on that ?
I can do 100 bounty for this
from capacitor-updater.
Haha @ shower thoughts π
Sure. I updated the capacitor-related dependencies for the demo-app from v4.x.x to v5.x. and will share that later.
Is that what you used for initial testing.
from capacitor-updater.
i use prod app but you can use this one too
from capacitor-updater.
π‘ @ayewo submitted a pull request that claims the bounty. You can visit your org dashboard to reward.
from capacitor-updater.
Hey Martin @riderx,
Testing on iOS and Android ended up taking quite a bit of time ... I think some refactoring and/or some unit tests will be usefulβespecially for the partial download featureβas I ran into some scenarios where some bundles were failing to delete.
Miscellaneous Issues
- On Android, I did get the occasional
A resource failed to call release
so there's a resource leak somewhere. - The CLI seems to output an invalid URL at the end of a bundle upload. Towards the end, it will offer the following 404 URL https://web.capgo.app/app/p//logs in its output (or maybe I don't have authorization to see it?):
β Check logs in https://web.capgo.app/app/p//logs to see if update works.
β
β Welcome onboard βοΈ!
β
β Your Capgo update system is setup
β
β Next time use `npx @capgo/cli@latest bundle upload` to only upload your bundle
β
β Bye π
from capacitor-updater.
I think you are right i never tested end to end local env so that could be broken, if you need time to fix it i can do bounty for that
from capacitor-updater.
The demo app worked on both iOS and Android in my testing. Had to fix a minor logic bug in the demo app (the Splashscreen was shown too quickly, an if
block never got called) and fixed a minor bug in the iOS plugin.
For the miscellaneous issues, I can open a separate ticket for them later as theyβll require time for me to investigate and fix them.
Right now, Iβm trying to complete the work I started on #119 so please accept the PRs I opened for this issue:
Thanks!
from capacitor-updater.
ππ @ayewo has been awarded $100! ππ
from capacitor-updater.
Hi!, i have a question
Where i can see how to make a loading page with auto update: true
and direct: true
?
from capacitor-updater.
You can find it here:
https://capgo.app/docs/plugin/force-update/#direct-update
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
- feat: ability to update your app on first start HOT 7
- 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.