You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After that, you need to sync the changes with your native projects:
@@ -31,9 +38,9 @@ Next, you need to configure the plugin to work with [Capawesome Cloud](https://c
31
38
32
39
### App ID
33
40
34
-
In order for your app to identify itself to Capawesome Cloud, you need to set the `appId` in your `capacitor.config.ts` file. For this, you need to create an app on the [Capawesome Cloud Console](https://console.cloud.capawesome.io/) and get the App ID.
41
+
In order for your app to identify itself to Capawesome Cloud, you need to set the `appId` in your `capacitor.config` file. For this, you need to create an app on the [Capawesome Cloud Console](https://console.cloud.capawesome.io/) and get the App ID.
35
42
36
-
```json
43
+
```json /src-capacitor/capacitor.config file
37
44
{
38
45
"plugins": {
39
46
"LiveUpdate": {
@@ -55,15 +62,15 @@ npx cap sync
55
62
56
63
The most basic usage of the Live Update plugin is to call the [`sync(...)`](https://capawesome.io/plugins/live-update/#sync) method when the app starts. This method checks for updates, downloads them if available, and sets them as the next bundle to be applied. You can then call the [`reload()`](https://capawesome.io/plugins/live-update/#reload) method to apply the update immediately. If the [`reload()`](https://capawesome.io/plugins/live-update/#reload) method is not called, the new bundle will be used on the next app start.
This will create a `src-capacitor/www` folder with the build output of your web app. You can then upload this folder to Capawesome Cloud using the [Capawesome CLI](https://capawesome.io/cloud/cli/).
78
85
To install the Capawesome CLI, run the following command:
79
86
80
-
```bash
81
-
npm install -g @capawesome/cli
87
+
```tabs
88
+
<<| bash Yarn |>>
89
+
$ yarn global add @capawesome/cli
90
+
<<| bash NPM |>>
91
+
$ npm i -g @capawesome/cli
92
+
<<| bash PNPM |>>
93
+
$ pnpm add -g @capawesome/cli
94
+
<<| bash Bun |>>
95
+
$ bun install -g @capawesome/cli
82
96
```
83
97
84
98
After installing the Capawesome CLI, you need to log in to your Capawesome Cloud account. Run the following command and follow the instructions:
Congratulations! You have successfully published your first live update. You can now test it by running your app on a device or emulator. The app will check for updates and apply them if available.
97
111
Feel free to check out the [documentation](https://capawesome.io/plugins/live-update/) of the Live Update plugin to see what else you can do with it.
After that, you need to sync the changes with your native projects:
@@ -31,9 +38,9 @@ Next, you need to configure the plugin to work with [Capawesome Cloud](https://c
31
38
32
39
### App ID
33
40
34
-
In order for your app to identify itself to Capawesome Cloud, you need to set the `appId` in your `capacitor.config.ts` file. For this, you need to create an app on the [Capawesome Cloud Console](https://console.cloud.capawesome.io/) and get the App ID.
41
+
In order for your app to identify itself to Capawesome Cloud, you need to set the `appId` in your `capacitor.config` file. For this, you need to create an app on the [Capawesome Cloud Console](https://console.cloud.capawesome.io/) and get the App ID.
35
42
36
-
```json
43
+
```json /src-capacitor/capacitor.config file
37
44
{
38
45
"plugins": {
39
46
"LiveUpdate": {
@@ -55,15 +62,15 @@ npx cap sync
55
62
56
63
The most basic usage of the Live Update plugin is to call the [`sync(...)`](https://capawesome.io/plugins/live-update/#sync) method when the app starts. This method checks for updates, downloads them if available, and sets them as the next bundle to be applied. You can then call the [`reload()`](https://capawesome.io/plugins/live-update/#reload) method to apply the update immediately. If the [`reload()`](https://capawesome.io/plugins/live-update/#reload) method is not called, the new bundle will be used on the next app start.
This will create a `src-capacitor/www` folder with the build output of your web app. You can then upload this folder to Capawesome Cloud using the [Capawesome CLI](https://capawesome.io/cloud/cli/).
78
85
To install the Capawesome CLI, run the following command:
79
86
80
-
```bash
81
-
npm install -g @capawesome/cli
87
+
```tabs
88
+
<<| bash Yarn |>>
89
+
$ yarn global add @capawesome/cli
90
+
<<| bash NPM |>>
91
+
$ npm i -g @capawesome/cli
92
+
<<| bash PNPM |>>
93
+
$ pnpm add -g @capawesome/cli
94
+
<<| bash Bun |>>
95
+
$ bun install -g @capawesome/cli
82
96
```
83
97
84
98
After installing the Capawesome CLI, you need to log in to your Capawesome Cloud account. Run the following command and follow the instructions:
Congratulations! You have successfully published your first live update. You can now test it by running your app on a device or emulator. The app will check for updates and apply them if available.
97
111
Feel free to check out the [documentation](https://capawesome.io/plugins/live-update/) of the Live Update plugin to see what else you can do with it.
0 commit comments