Advance Webview android app Source code

Advance Webview Android App - Kotlin source code preview

Advance Webview · Android Source

Modern Kotlin WebView wrapper — Play Store compliant, native feel, FCM ready.

$14.99 USD

⚡ Wrap your website into a native Android app — without risking Google Play rejection. This is a production‑ready, Kotlin‑based WebView wrapper with domain filtering, deep linking, Material 3, and full FCM push support. Built for 2026 standards.

Kotlin + Coroutines Material Design 3 ViewBinding API 24 → 34 Gradle Kotlin DSL

Core features — advanced WebView

Smart navigation

Domain filtering keeps users inside your site. External links open in browser with a confirmation dialog. No more “lost in webview” experience.

Custom WebChromeClient

File uploads via Activity Result API, JS alerts as Material Dialogs, fullscreen video handling — everything you expect from a native app.

High‑performance WebSettings

DOM storage, JS, caching enabled. Mixed content blocked, Safe Browsing ON. Third‑party cookies disabled for privacy.

JavaScript Bridge

AndroidBridge exposes share, vibration, device info. Secured with @JavascriptInterface and input validation.

Pull-to-Refresh & Splash

SwipeRefreshLayout + modern SplashScreen API. No white flashes — splash stays until initial page loads.

Offline & Error handling

Custom retry layout when connection drops (using onReceivedError). Native “no internet” UI with Coroutine checks.

Native feel & deep integration

  • JavaScript Bridge methods: shareContent(url), vibrate(), getDeviceInfo() — your website can trigger native Android actions.
  • Dynamic Toolbar: Updates title from webpage, includes progress indicator and back/forward stack awareness.
  • App Links (Digital Asset Links): With assetlinks.json on your server, the app becomes default handler — no disambiguation dialog.

Play Console Compliance · “Don’t get banned”

Google is strict about WebView wrappers. This source includes everything to pass review:

  • Prominent disclosure dialog on first launch: “This app is a webview wrapper for [Your Site]”. User must accept.
  • Android App Links implemented — host assetlinks.json to own your domain.
  • Runtime permissions: POST_NOTIFICATIONS (Android 13+) and location requested only when needed, with rationale.
  • Backup rules: WebView cache & cookies excluded from cloud backup → user sessions stay private.

Push notifications & FCM

Firebase Cloud Messaging integration allows your website to send native pings. The app includes:

Deep linking

Click a notification → opens exact URL inside WebView, not just homepage. Also handles standard web links.

FCM token handover

JS method lets your website fetch the FCM token to register it in your backend — seamless push subscription.

Clean project structure

  • MainActivity.kt — central WebView orchestration, back press, deep link handling.
  • MyWebChromeClient.kt — file chooser, video, geolocation prompts.
  • NetworkUtils.kt — Coroutine-powered connectivity checks.
  • PreferenceManager.kt — Jetpack DataStore for privacy acceptance & settings.
  • AndroidBridge.kt — @JavascriptInterface with safe methods.

Pro Tip: When publishing, choose an app name distinct from your website’s brand unless you own the trademark. “MySite Viewer” or “MySite Mobile” usually passes review smoothly. And always use a unique, high‑resolution icon.

Get the source code · $14.99

Instant download · Lifetime updates · Clean, commented Kotlin code

Advance Webview · Android Source Code — 2026 ready