Thanks for your reply.when you use serve command it runs on “localhost” in the browser but in the device it doest not have host url it runns from direct url “file:///android_asset/www/index.html”
Why are you serving the entire host name predefined? Your app should resolve the path by itself. Since file:///android_asset/www is your main asset folder, using a different path as host (just a slash for instance) would resolve to the path your seeking for. This should work in your browser as well as on mobile.