We are using single app kiosk mode to keep a page from been closed. However, we cannot link to external sites. Any idea how to link to other sites?
To display external content inside a Chrome app, you need a <webview>.
Related
I am working with Safari web app for iDevice. I got the configuration right from Configuring Web Applications and it went well without any issues. In my web app, there is a link for logging out the web page that requires to redirecting the webpage. The problem is when it redirects, it opens Safari app instead of redirecting in the web app. It's not like Google Chrome on Android device, it works well.
I solved it by using javascript to redirecting instead of using a tag.
I was wondering whether it's possible to use chrome.send() function ,which is accessible in chrome internal pages like chrome://version, for sending commands such as chrome.send('restartBrowser') to chrome browser outside of chrome internal pages and inside of my own custom web page or not.
So I know that 'Chrome Packaged App' will run in a window, I have tried to run the website I want in a <webiview> tag but it gets stuck at the beginning and I can't find a way to debug what's happenning inside that <webview> tag.
I now have tried to change the manifest to work as a 'Chrome Hosted App' but it keeps opening in a tab.
How do I start my app in a window, either by having it as a chrome hosted app?
Or by <webview> (if I find a way to debug it)?
As pointed here, a Chrome Hosted app can be open in a specific window if you enable this flag:
Enables the web app style frame for hosted apps
in chrome://flags.
Chrome's built-in developer tools can be used to debug packaged apps, extensions and webview as well as web pages (Right-click on any page element in webview and select Inspect Element).
Just like Android has a webview inside which a webpage can be opened, is it possible to do the same using chrome packaged app?
To give an example, how about opening a youtube link inside a chrome packaged app and then playing around with its DOM elements and adding more functionality to it using the app?
You have to use webviews (like with Android) and then play with executeScript and insertCSS.
If you want a full example, I made a Chrome Packaged App for Google Play Music in 2013 (it could be deprecated) and the code is available on GitHub.
I am creating an iPad app, using HTML5 and PhoneGap. I am wanting to put an iframe into a page and pull through some content in a php page found remotely on our server.
I have set the correct ExternalHost in the PhoneGap.plist file so that it will accept the external domain.
If I tell the iframe to access a .html page (on the server), it works perfectly - However if I change the extension to .php I get a blank iframe.
This is all while testing the app directly on the iPad and the IOS Simulator.
Could anyone suggest anything I have missed out?