I like Ionic PWA: No need for app installation, just calling a page on a webserver and the app is running on the smartphone in the browser.
My app needs for some reason the ip address of the webserver it is running on. So, the solution needs to work on server side while acting the php interpreter before it got send out to the smartphone browser.
On Php I get the string of the ip address with
getHostByName(getHostName()); // returns something like ‘192.168.0.20’
How to transfer this result string from php into the Ionic PWA app?
Do I have to rename the index.html into a index.php and play around with value-attributes that get the string injected/binded like
<input hidden [ngModel]=“whatever” value="<?= getHostByName(getHostName()); ?>">