Configured server to work as a screen on iphone which communicates with phonegap using postmessage.