I spent some time recently trying to find out how to launch my website as a mobile app. The information was available around the internet but since it took me a while, I thought I'd collate it here in one simple post for anyone who wants to do the same
I decided to use Apache Cordova since it gave me the framework for developing an HTML5 site as a mobile app already, meaning all I really needed to do was plug my website into it. Their getting started guide has good information on how to create a Cordova project - I used Android but you can use whatever means you wish
A basic Cordova app gives you a way to launch the app with an HTML page that you use to display your app contents. The trick then is make the page load your website which you can do in one of 3 ways:
1. Package your site inside the app. This means it loads fast and without an internet connection. The downside is you have to update and re-release the app whenever your website changes. It also needs to use relative paths since the root directory will be the mobile device's root directly, not the root of your site
2. Point the page at your remote website, which means changes are picked up immediately. The downside is that it won't work if the phone has no internet connection
3. Do both and fall back to the local site if there is no network connection
I spent some time recently trying to find out how to launch my website as a mobile app. The information was available around the internet but since it took me a while, I thought I'd collate it here in one simple post for anyone who wants to do the s
More...
I spent some time recently trying to find out how to launch my website as a mobile app. The information was available around the internet but since it took me a while, I thought I'd collate it here in one simple post for anyone who wants to do the same
I decided to use Apache Cordova since it gave me the framework for developing an HTML5 site as a mobile app already, meaning all I really needed to do was plug my website into it. Their getting started guide has good information on how to create a Cordova project - I used Android but you can use whatever means you wish
A basic Cordova app gives you a way to launch the app with an HTML page that you use to display your app contents. The trick then is make the page load your website which you can do in one of 3 ways:
1. Package your site inside the app. This means it loads fast and without an internet connection. The downside is you have to update and re-release the app whenever your website changes. It also needs to use relative paths since the root directory will be the mobile device's root directly, not the root of your site
2. Point the page at your remote website, which means changes are picked up immediately. The downside is that it won't work if the phone has no internet connection
3. Do both and fall back to the local site if there is no network connection
hide