This template helps you create a Cordova mobile app that loads your website from a specified URL, effectively turning your web app into a native-like mobile application.
- Loads any web URL inside a Cordova WebView
- Supports Android and iOS
- Simple configuration
-
Create a new Cordova project:
cordova create myApp com.example.myapp MyApp cd myApp -
Add platforms:
cordova platform add android cordova platform add ios
-
Copy template files: Replace the contents of the
wwwfolder with the files from this template. -
Configure your web URL: Edit
www/js/index.jsand set your desired URL:var webUrl = "https://yourwebsite.com";
-
Add the InAppBrowser plugin:
cordova plugin add cordova-plugin-inappbrowser
- Android:
cordova run android
- iOS:
cordova run ios
- Update the app icon and splash screen in the
resfolder. - Modify
config.xmlfor app metadata.
MIT
Note: Make sure your website supports mobile devices and uses HTTPS for best results.