capacitor-community / proposals

Plugin and platform requests āœ‹
74 stars 2 forks source link

Open Source Hot Code Push / Over The Air Updates #43

Open alexcroox opened 4 years ago

alexcroox commented 4 years ago

Plugin Request

Name: Capacitor Hot Code Push Package: @capacitor-community/hot-code-push

Platform(s)

Android, iOS

Existing Solutions

MS Code Push - Free, very popular for Cordova, no Capacitor support yet

App Flow - Paid solution with very expensive plans given the low update limits. No API to upload built web directory on normal plans, not very flexible to binaries built elsewhere

Description

Over the Air Updates / Hot Code Push is the ability to update the js/css/html of your app in real time without having to go through the app store and waiting for reviews. This allows you to push critical fixes out quickly inline with your web app deployments instead of waiting days for Apple to approve entire binary updates.

It would be great if a plugin could facilitate over the air updates from a server/endpoint of our choosing where the developer controls the hosting of the OTA updates.

The key to the plugin is the ability to download a zip file of your updated dist folder, extract it, tell Capacitor to launch from this new directory until told otherwise.

There are other factors like verifying updates, choosing when to install them (forced on launch or next time the app is given focus after downloading etc), and optionally downloading only what has updated.

riderx commented 2 years ago

After the manual mode of capacitor-updater to download updates. I released the auto-update mode, you can connect it to your backend or mine https://capgo.app . It's all open source and all dead simple, enjoy !

skjece commented 2 years ago

After the manual mode of capacitor-updater to download updates. I released the auto-update mode, you can connect it to your backend or mine https://capgo.app . It's all open source and all dead simple, enjoy !

This feature was much needed as ionic charges too much for this . Thanks a lot @riderxx

skjece commented 2 years ago

After the manual mode of capacitor-updater to download updates. I released the auto-update mode, you can connect it to your backend or mine https://capgo.app . It's all open source and all dead simple, enjoy !

This feature was much needed as ionic charges too much for this . Thanks a lot @riderxx

riderx commented 2 years ago

@skjece ionic charge a lot, i agree, but for way more than live updates. Native build are a pain in the ass too, and my tool doesn't fix that, when you update native code you have to send a new version in the store.

alexcroox commented 2 years ago

If you want to automate that part try fastlane, I've used it for about 5 years now on various projects and it takes all the pain out of auto building and auto submitting to Apple/Android via CI/CD. Past couple of years I've had it running great in GitHub Actions https://docs.fastlane.tools/

riderx commented 2 years ago

@alexcroox it like all CI, it's scary to configure at beginning! For all others who have followed the adventure, https://capgo.app is starting to be paid for usage in 15 days, with a fair price. You can still use the plugin for free in manual mode or with your own server, if you do don't forget to support open-source : https://github.com/sponsors/riderx <3

Thanks a lot all for feedback and energy it helped me to start this wonderful project!

robingenz commented 1 month ago

Hey everyone, since this issue is still open I wanted to mention the brand new Capacitor Live Update plugin from Capawesome.

Features:

I would really appreciate your feedback. Feel free to create a discussion in https://github.com/capawesome-team/capacitor-plugins if you have any questions or send me an email (so we don't spam this issue). Have a nice day!

SalahAdDin commented 1 month ago

That repo is amazing @robingenz !