Skip to content
Android Jetpack Navigation with WebView Demo
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
media
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Android Jetpack Navigation with WebView Demo

This demo project illustrates one solution on how to integrate Android Navigation with the Android WebView component.

You can install this demo from Google Play

This link is a deeplink and will take you to the settings page when viewed in the demo.

Deep link test: https://webnavdemo/settings

The objective was to make each new page opening in the webview correspond with a new Destination in the NavGraph so that the WebView coordinates with navigation stack. This is done by adding a custom Navigator to the NavController in a trivial subclass of NavHostFragment. This Navigator provides the placeholder URLDestination that corresponds to each opening of a webpage in the WebView fragment

You can’t perform that action at this time.