Apply proxy programmatically to webview in Windows phone 8.1 - c++11

I have a webview in xaml c++ windows phone and a local running proxy on the device which I want to specify to webview...
I read that this was possible in wp7!
Is there a way or a workaround to consume the local running proxy into my webview.

As this is answered in MSDN which is not possible. please see here:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/13287270-1d49-4d23-aa89-9360673c81ef/proxy-settings-for-webview?forum=winappswithcsharp
The WebView will automatically use IE Proxy settings, that means you need to setup the IE proxy before use WebView.

Related

Is there an equivalent of chrome's nativeMessaging API in Internet Explorer?

On chrome, extensions can exchange messages with native applications with the help of native messaging APIs How can we achieve this on IE?
use-case : We have our own desktop application which users can download and install from our site. Next time when they revisit, we should be able to detect if the native application is installed and launch if its available.
We were able to build a solution on chrome with the help of an extension which makes use of chrome native messaging APIs to connect to native application.
Need something similar on IE browsers or a generic solution which will work across all major browsers.
You might want to have a look at URL handlers, they are supported for Firefox, Chrome and Internet Explorer.
Basically it enables you to register for example myapp:// for the browser and then you can have the browser call the application that is registered to this handler.
This is a technique which for example uTorrent uses to open trackers for torrent:// and magnet://.
You can check these links for details or search for solutions here on SO:
https://developer.mozilla.org/en/docs/Web-based_protocol_handlers
https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
https://developer.chrome.com/apps/manifest/url_handlers
If you have the desktop application installed, you can just install the BHO in the IE. This BHO should handle Navigate events from the browser, then, when user navigates to your site, BHO will indicate to the site, that the your app is present on the system. For example, BHO can inject some "marker" node on the page or call some predefined JS function on the your site's page. Also this BHO can perform some additional communication with you desktop app via the COM (or you can emulate manually int the BHO the protocol used in Chrome native messaging) and use the same approach as for Chrome.

Specify Proxy for WebBrowser control in WP7, WP8

Is there a possibility of specifying a proxy for a WebBrowser control in a custom application for Windows Phone 7 and/or 8? I have found solutions for hooking into the WebClient like here, but the browser control obviously does not consider those settings. Are there any other solutions? Are there any news with regards to that issue in Windows Phone 8?
The WebBrowser control is tied to the OS, therefore inheriting the proxy settings that are definied by the user of the device. You can't directly modify them, unless you want to intercept navigation events and feed them directly to your server.

Is it possible to make a mobile website work as a native app in windows phone?

I saw using IPhone or Android, it is possible to add a website to the desktop or start screen and this will make this website work as a native app which will open without the browser frame.
Is that possible using Windows Phone and how?
No.
You can pin a website to your howe screen but htis will open in Interenet Explorer when launched

Open Windows Phone 7 App from URL

I need to launch my WP7 application from the phone's browser and pass some arguments. For example, the following url would be a link on an html page. Clicking the link would start my application. iPhone and Android both have these capabilites by the name of 'url schemes'.
appName://my.arguments.here
How can I accomplish this on WP7?
Thanks!
Unfortunately there is currently no support for "url schemes" or custom URL handlers that will allow you to handle these requests from within your application.
It is possible to integrate with the search application, which can provide deep linking into your application. It also appears that YouTube has some kind of way of doing it, as the mobile version of their site will jump to the app for playback of videos.
You should use the protocol activation feature of Windows Store apps - see http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx

Is TWebBrowser dependant on IE version?

I am thinking about using the TWebBrowser component that comes within Delphi's default pallet of components in a project, but I wonder if it uses the IE version installed on the client machine?
If yes:
then I guess it would share its history, cookies, workoffline and stuff like that?
Can I separate them somehow?
Is there any webbrowser component that is free and is not shared with Internet Explorer on the client?
The current answer is not quite correct. It appears for compatibility purposes, the WebBrowser control will run in IE7 Standards Mode by default unless you add some registry settings.
See:
WebBrowser Control Rendering Modes in IE8 (archive)
More IE8 Extensibility Improvements (archive)
So it's not quite the current IE version. You can also check this if you use fiddler or check the web server logs for the agent string - as it alters the agent string used too!
Yes, TWebBrowser uses whatever IE version is installed on the machine.
Take a look at this similar thread for some possible alternatives..
How to embed a browser object, other than IE<n>, in a Delphi application
Yes, TWebBrowser is tied to Internet Explorer. If you want a standalone HTML viewer, then look at the PBear components.
TWebBrowser is a wrapper around IE ActiveX interface.
So, in the end,
TWebBrowser = Internet Explorer

Resources