Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (32 sloc) 1.36 KB

Android Components > Feature > Progressive Web Apps (PWA)

Feature implementation for Progressive Web Apps (PWA).


Setting up the dependency

Use Gradle to download the library from (Setup repository):

implementation "org.mozilla.components:feature-pwa:{latest-version}"


Standalone and fullscreen web apps are launched in a WebAppShellActivity instance. Since this instance requires access to some components and app using this component needs to create a new class and register it in the manifest:

class WebAppActivity : AbstractWebAppShellActivity() {
    override val engine: Engine by lazy {
        /* Get Engine instance */
    override val sessionManager: SessionManager by lazy {
        /* Get SessionManager instance */
<activity android:name=".WebAppActivity">
        <action android:name="mozilla.components.feature.pwa.SHELL" />
        <category android:name="android.intent.category.DEFAULT" />


This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at
You can’t perform that action at this time.