Skip to content

atikvm/cordova-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Cordova App Template: Web URL Wrapper

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.

Features

  • Loads any web URL inside a Cordova WebView
  • Supports Android and iOS
  • Simple configuration

Getting Started

Prerequisites

Installation

  1. Create a new Cordova project:

    cordova create myApp com.example.myapp MyApp
    cd myApp
  2. Add platforms:

    cordova platform add android
    cordova platform add ios
  3. Copy template files: Replace the contents of the www folder with the files from this template.

  4. Configure your web URL: Edit www/js/index.js and set your desired URL:

    var webUrl = "https://yourwebsite.com";
  5. Add the InAppBrowser plugin:

    cordova plugin add cordova-plugin-inappbrowser

Running the App

  • Android:
    cordova run android
  • iOS:
    cordova run ios

Customization

  • Update the app icon and splash screen in the res folder.
  • Modify config.xml for app metadata.

License

MIT


Note: Make sure your website supports mobile devices and uses HTTPS for best results.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published