adam0101
adam0101

Reputation: 31095

Does PhoneGap host html pages on the phone or have to connect to the server?

I'm trying out PhoneGap in Visual Studio. If I create an app and allow someone to install it, what happens if they try to launch it when they don't have internet connectivity? Ideally, I'd like the app to still display something to the user even if the server is unavailable. Are the web pages hosted locally on the phone and connect to the server via JavaScript and web services? Or are the pages hosted on a web server which the phone needs to have access to for the app to work?

Upvotes: 0

Views: 578

Answers (1)

Paul Beusterien
Paul Beusterien

Reputation: 29582

PhoneGap is a technology that transforms web apps into native apps. Nothing runs on a server unless you explicitly define it that way.

It packages HTML/JavaScript/CSS into local resources that are loaded when needed by the native wrappers.

Upvotes: 1

Related Questions