A simple use webview integrated w/ native features & plugin support for building hybrid apps.
A simple use webview integrated w/ native features & plugin support for building hybrid apps.
Android Smart WebView provides a robust foundation for converting any website into a feature-rich mobile application, complete with a powerful plugin system for extending native functionality.
google-services.json).swv.properties).swv.properties.git clone https://github.com/mgks/Android-SmartWebView.gitFile > Open > Select the cloned project folderswv.properties:app/src/main/assets/swv.properties.app.url to your website's URL and adjust other settings as needed. This is the main configuration file for the app.google-services.json (Optional):google-services.json file from the Firebase console into the app/ directory.Build > Clean Project then Build > Rebuild Project.All primary configuration is done within app/src/main/assets/swv.properties:
app.url to your web application's address.offline.url (file:///android_asset/web/offline.html) is used if no internet is detected.feature.* boolean properties.AndroidManifest.xml based on the features you enable. For example, CAMERA for camera uploads, ACCESS_FINE_LOCATION for GPS.Playground.java. This allows you to change settings without modifying the plugin source code itself.Smart WebView now includes all plugins for free, providing a comprehensive toolkit to build powerful hybrid apps out of the box.
We are modularizing the best parts of Smart WebView into lightweight, standalone libraries that you can use in any Android project (Native or Hybrid).
| Library | Description |
|---|---|
| Biometric Gate | Secure, lifecycle-aware lock screen for any Activity. |
| File Handler | Painless file uploads & camera captures for WebViews. |
| JS Bridge | Two-way, Promise-based communication between Kotlin & JS. |
| Print Helper | One-line printing for Android WebViews. |
| FCM Sync | Sync Firebase Push Tokens to WebView Cookies. |
The best way to understand the project in depth is to explore the source code:
app/src/main/assets/swv.properties: Contains all global configurations.SWVContext.java: The central class that loads the configuration and holds app state.MainActivity.java: The main entry point that handles WebView setup and integrates core features.PluginInterface.java & PluginManager.java: Key components of the plugin architecture.Playground.java: The central place for configuring and testing plugins.plugins/ directory: Contains the full source code for all included plugins.Distributed under the MIT License. See LICENSE for more information.
{ github.com/mgks }
No open issues yet, or sync has not completed.