Use window.location = "http://www.example.com" instead of a solid index page in the phonegap application

I'm starting to make a phone call and want to make an application for my site by providing

window.location = "http://www.example.com"

instead of all the html code of the page of my site. But I still want to use cordova features in my application, such as isMobile or isMobileApp. Is there a way I can continue this type of situation, or will I have to go through my index page.

Also, is there a way to dynamically change the index.html of my application through javascript.

I would be very grateful if anyone could help me.

+5
source share
1 answer

If I understood well, perhaps this plugin will be able to do what you want. https://cordova.apache.org/docs/en/3.0.0/cordova_inappbrowser_inappbrowser.md.html This plugin loads the full HTML page in your application or uses Iframe.

If you want to dynamically change the content from the phone screen saver, you need to use Ajax with php or any of your server language options, for example .net

0
source

Source: https://habr.com/ru/post/1201157/


All Articles