Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 1 | # Try out WebView Beta, Dev, or Canary |
| 2 | |
| 3 | Using a pre-release channel of WebView allows you to test new, upcoming features |
| 4 | and enhancements to WebView. This is especially useful for Android app |
| 5 | developers who use WebView in their apps. |
| 6 | |
| 7 | [TOC] |
| 8 | |
| 9 | ## Which channel do I want? |
| 10 | |
| 11 | Like [Chrome](https://www.chromium.org/getting-involved/dev-channel), WebView |
| 12 | has four release channels: |
| 13 | |
| 14 | - Stable channel |
| 15 | - Installed and updated by default on every Android device with WebView |
| 16 | - Fully tested; least likely to crash or have other major bugs |
| 17 | - Updated every 2-3 weeks with minor releases, and every 6 weeks with major |
| 18 | releases |
| 19 | - Beta channel |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 20 | - Available on Android 7 (Nougat) and later |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 21 | - Tested before release, but not as extensively as stable |
| 22 | - One major update ahead of stable, minor updates every week |
| 23 | - Dev channel |
| 24 | - Publicly available on Android 7 (Nougat) and later |
| 25 | - Two major updates ahead of stable, representing what is actively being |
| 26 | developed |
| 27 | - Updated once per week |
| 28 | - Minimally tested |
| 29 | - Canary build |
| 30 | - Available on Android 7 (Nougat) and later |
| 31 | - Released daily |
| 32 | - Includes the latest code changes from the previous day |
| 33 | - Has not been tested or used |
| 34 | |
Drew Stonebraker | 2499ee9 | 2019-06-28 00:42:23 | [diff] [blame] | 35 | If you're looking for a specific of version of chromium, the latest versions |
| 36 | released to each channel can be found on [Chromium |
| 37 | Dash](https://chromiumdash.appspot.com/releases?platform=Android). WebView and |
| 38 | Chrome for Android always release together on all OS levels. |
| 39 | |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 40 | On Android 7 (Nougat) and later, you can install multiple channels at the same |
| 41 | time. This allows you to play with our latest code, while still keeping a tested |
| 42 | version of WebView around. |
| 43 | |
Nate Fischer | dab82261 | 2020-06-30 20:07:18 | [diff] [blame] | 44 | ## How do I try a pre-release channel? {#switch-channel} |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 45 | |
| 46 | Steps depend on your version of Android: |
| 47 | |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 48 | ### Android 10 and later (Q, R, etc.) - Beta channel {#trichrome-beta} |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 49 | |
Nate Fischer | d38da84 | 2022-11-03 15:46:38 | [diff] [blame] | 50 | We offer a new streamlined experience for joining the WebView Beta channel (if |
| 51 | you want to opt into Dev or Canary, or you are interested in using WebView |
| 52 | DevTools to try experimental WebView features, [skip to the next |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 53 | section](#trichrome-dev)). |
| 54 | |
| 55 | The easiest way to start testing WebView Beta is to opt into the experience on |
| 56 | the Google Play Store. |
| 57 | |
| 58 | 1. [Join the beta tester program on Google Play.][WebView tester program] |
| 59 | 2. On your device, update **Android System WebView** [in the Play |
| 60 | Store.][WebView PlayStore] |
| 61 | 3. When the Play Store finishes updating, you will be using WebView Beta! |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 62 | |
| 63 | #### Returning to stable WebView |
| 64 | |
| 65 | 1. [Leave the tester program.][WebView tester program] |
| 66 | 2. Uninstall all updates by visiting Settings > Apps > Android System WebView > |
| 67 | Three dots menu in the top right > Uninstall updates. |
Nate Fischer | 80c1af7df | 2024-01-31 01:29:40 | [diff] [blame] | 68 | 3. [Visit the Play Store page][WebView PlayStore] one more time to install the |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 69 | latest updates to WebView stable, which will include important security |
| 70 | fixes. |
| 71 | |
| 72 | |
| 73 | ### Android 10 and later (Q, R, etc.) - Dev and Canary channel {#trichrome-dev} |
| 74 | |
| 75 | Dev and Canary channels must be downloaded and installed as separate apps, but |
| 76 | only one must be chosen to provide the system's WebView implementation at any |
| 77 | given time. |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 78 | |
| 79 | *** note |
| 80 | WebView pre-release channels are independent of Chrome in Android 10 and later. |
Nate Fischer | bf412c93 | 2020-10-30 15:01:44 | [diff] [blame] | 81 | Chrome can no longer be used as a WebView implementation in Android 10 and |
| 82 | later. |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 83 | *** |
| 84 | |
| 85 | 1. Download a pre-release channel of WebView from the play store, available here: |
| 86 | - [WebView Beta](https://play.google.com/store/apps/details?id=com.google.android.webview.beta) |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 87 | may be installed either through this method or through the [streamlined |
Nate Fischer | d38da84 | 2022-11-03 15:46:38 | [diff] [blame] | 88 | approach mentioned above](#trichrome-beta). Installing through this method |
| 89 | will automatically install WebView DevTools. |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 90 | - [WebView Dev](https://play.google.com/store/apps/details?id=com.google.android.webview.dev) |
| 91 | - [WebView Canary](https://play.google.com/store/apps/details?id=com.google.android.webview.canary) |
| 92 | 2. Follow the [steps to enable Android's developer options |
| 93 | menu](https://developer.android.com/studio/debug/dev-options) |
| 94 | 3. Choose Developer Options > WebView implementation (see figure) |
| 95 | |
| 96 |  |
| 97 | |
| 98 | 4. Choose the channel that you would like to use for WebView |
Nate Fischer | d38da84 | 2022-11-03 15:46:38 | [diff] [blame] | 99 | 5. **Bonus:** you'll also now see an icon for your chosen WebView channel in the |
| 100 | list of apps. You can use this app to report bugs, toggle experimental |
| 101 | features, and much more! See the [WebView DevTools user guide] for more |
| 102 | details. |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 103 | |
| 104 | #### Returning to stable WebView |
| 105 | |
| 106 | 1. To return to WebView stable, select "Android System WebView" again in the |
| 107 | WebView implementation menu |
| 108 | |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 109 | ### Android 7 through 9 (Nougat/Oreo/Pie) |
| 110 | |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 111 | Pre-release channels must be downloaded and installed as separate apps, but only |
| 112 | one must be chosen to provide the system's WebView implementation at any given |
| 113 | time. |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 114 | |
| 115 | 1. Download a pre-release channel of Chrome from the play store, available here: |
| 116 | - [Chrome Beta](https://play.google.com/store/apps/details?id=com.chrome.beta) |
| 117 | - [Chrome Dev](https://play.google.com/store/apps/details?id=com.chrome.dev) |
| 118 | - [Chrome Canary](https://play.google.com/store/apps/details?id=com.chrome.canary) |
| 119 | 2. Follow the [steps to enable Android's developer options |
| 120 | menu](https://developer.android.com/studio/debug/dev-options) |
| 121 | 3. Choose Developer Options > WebView implementation (see figure) |
| 122 | |
| 123 |  |
| 124 | |
| 125 | 4. Choose the Chrome channel that you would like to use for WebView |
| 126 | |
| 127 | #### Returning to stable WebView |
| 128 | |
| 129 | 1. To return to WebView stable, select Chrome again in the WebView |
| 130 | implementation menu |
| 131 | |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 132 | ### Android Auto and Android TV |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 133 | |
| 134 | Only one installation of WebView is allowed, but users can opt to receive the |
| 135 | latest beta updates from the Play Store. |
| 136 | |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 137 | 1. [Join the beta tester program on Google Play.][WebView tester program] |
| 138 | 2. On your device, update **Android System WebView** [in the Play |
| 139 | Store.][WebView PlayStore] |
| 140 | 3. When the Play Store finishes updating, you will be using WebView Beta! |
| 141 | 4. **Bonus:** you'll also now see the "WebView Beta" icon in your list of apps. |
| 142 | You can use this app to report bugs, toggle experimental features, and much |
| 143 | more! See the [WebView DevTools user guide] for more details. |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 144 | |
| 145 | #### Returning to stable WebView |
| 146 | |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 147 | 1. [Leave the tester program.][WebView tester program] |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 148 | 2. Uninstall all updates by visiting Settings > Apps > Android System WebView > |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 149 | Three dots menu in the top right > Uninstall updates. |
| 150 | 3. [Visit the Play Store page][WebView PlayStore] one more time to install the |
| 151 | latest updates to WebView stable, which will include important security |
| 152 | fixes. |
| 153 | |
| 154 | ### Android 5 or 6 (Lollipop/Marshmallow) |
| 155 | |
| 156 | We no longer support devices running Android 5 or 6. Devices on these old OS |
| 157 | versions can still update to the last supported WebView release but will not be |
| 158 | able to install further updates. |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 159 | |
| 160 | ### Android 4.4 (KitKat) or earlier |
| 161 | |
| 162 | WebView does not receive updates on these versions of Android, so the |
| 163 | pre-release channels of WebView are not available. |
| 164 | |
| 165 | ## Reporting problems with pre-release WebView |
| 166 | |
Drew Stonebraker | 96a1d40 | 2019-05-29 21:05:48 | [diff] [blame] | 167 | Any WebView-related bugs can be filed |
Nate Fischer | 5d3cede | 2024-03-04 18:29:51 | [diff] [blame] | 168 | [here](https://issues.chromium.org/issues/new?component=1456456&template=1923373). |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 169 | |
| 170 | To best enable us to resolve the issue, please ensure you provide all of the |
| 171 | information requested in the bug report template. |
| 172 | |
Nate Fischer | dab82261 | 2020-06-30 20:07:18 | [diff] [blame] | 173 | ## Work profile, multiple users, or Samsung Secure Folder {#multiple-profiles} |
Nate Fischer | 1d3c5e6 | 2020-06-11 15:17:38 | [diff] [blame] | 174 | |
| 175 | *** aside |
| 176 | This only applies to Android 8 (Oreo) and above. |
| 177 | *** |
| 178 | |
| 179 | If your Android device has been configured with a work profile, you'll need to |
| 180 | install pre-release WebView for both your work profile and regular profile. You |
| 181 | can only change WebView channel if you've enabled this for all profiles on the |
| 182 | device. Then you should be able to successfully switch WebView channels |
| 183 | following the steps above. |
| 184 | |
| 185 | Some devices [may support multiple user |
| 186 | accounts](https://support.google.com/nexus/answer/2865483?hl=en). Similar to |
| 187 | work profile, your pre-release WebView channel must be installed and enabled for |
| 188 | each user account on the device. |
| 189 | |
| 190 | Some Samsung phones support a feature called [Secure |
| 191 | Folder](https://www.samsung.com/global/galaxy/what-is/secure-folder/). Under the |
| 192 | hood, this is implemented by creating a new user profile, similar to work |
| 193 | profile or multiple users. If you've previously enabled the Secure Folder |
| 194 | feature, you'll need to add your WebView channel to the folder. Open the folder, |
| 195 | click "add apps," and select the desired WebView channel. Then you should be |
| 196 | able to select WebView from the menu above. |
| 197 | |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 198 | ## Command line tools |
| 199 | |
| 200 | Choosing your WebView implementation on Android 7 (Nougat) or later can also |
| 201 | be done using adb, instead of the Settings UI: |
| 202 | |
| 203 | ```shell |
| 204 | adb shell cmd webviewupdate set-webview-implementation <packagename> |
| 205 | ``` |
| 206 | |
| 207 | Package names are as follows: |
| 208 | |
Torne (Richard Coles) | d0f4f59 | 2019-11-22 22:28:18 | [diff] [blame] | 209 | |App name |Package name | |
| 210 | |---------------------------:|----------------------------------------| |
| 211 | |Chrome (stable, 7/8/9 only) |com.android.chrome | |
| 212 | |Chrome Beta (7/8/9 only) |com.chrome.beta | |
| 213 | |Chrome Dev (7/8/9 only) |com.chrome.dev | |
| 214 | |Chrome Canary (7/8/9 only) |com.chrome.canary | |
| 215 | |WebView (stable) |com.google.android.webview | |
| 216 | |WebView Beta (10+ only) |com.google.android.webview.beta | |
| 217 | |WebView Dev (10+ only) |com.google.android.webview.dev | |
| 218 | |WebView Canary (10+ only) |com.google.android.webview.canary | |
Drew Stonebraker | f7ea76c | 2019-05-28 22:20:14 | [diff] [blame] | 219 | |
| 220 | ## See also |
| 221 | - [WebView channels in detail](/android_webview/docs/channels.md) |
| 222 | - [Chrome Release |
| 223 | Channels](https://www.chromium.org/getting-involved/dev-channel) |
Drew Stonebraker | 2499ee9 | 2019-06-28 00:42:23 | [diff] [blame] | 224 | - [WebView Release History](https://chromiumdash.appspot.com/releases?platform=Android) |
Nate Fischer | a6bda6a9 | 2022-10-31 21:02:25 | [diff] [blame] | 225 | |
| 226 | [WebView DevTools user guide]: https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/developer-ui.md |
| 227 | [WebView PlayStore]: https://play.google.com/store/apps/details?id=com.google.android.webview |
| 228 | [WebView tester program]: https://play.google.com/apps/testing/com.google.android.webview |