Using the capacitor updater with self-hosted capgo
What this tutorial will cover?
This tutorial will show how to use capacitor updater in a dev environment with self hosted capgo
To use the capacitor updater with self-hosted capgo edit the
capacitor.config.ts from your app directory and set it like this:
This will enable you to use local capgo in development. However, by default, this is not enough.
In Android enabling plaintext communication is required as by default SSL is disabled in local.
This can be achived by modifying AndroidManifest.xml and adding
android:usesCleartextTraffic="true" in the
A full example of this change can be seen here
Since by default, Android does not allow
http capgo has implemented a check for http here
This code might not be always here, but for now a change to this line is required to get updates working
This line should look something like this:
There also could be a problem that prevents the android app from connecting. If you do not see any requests being send to edge functions run