Specify Proxy for WebBrowser control in WP7, WP8 - windows-phone-7

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.

Related

Apply proxy programmatically to webview in Windows phone 8.1

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.

Is possible to use windows theme without they are active

Is possible the enable/force windows theme only for my application without third party components?
Can I hook the uxTheme API to think that it is active?
I cannot see how you could do this. Windows themes rely on DWM composition which is enabled for the login session. It cannot be partially enabled for individual applications.

Offer to open url in app instead of IE in WP7?

I have an app that displays news stories for a publication. If a user opens a story on their phone in IE, I would like to offer an option to open it in the newsreader app instead. Is it possible to hook into IE somehow to do this? Or perhaps display a link on the website that the phone knows how to translate into an app?
Unfortunately it is not possible to hook your application to IE. The OS only provides this functionality to some special apps (ie. YouTube). Launching apps from IE is not possible.
You can use a WebBrowser control for doing this.
Since you're displaying news stories I'm assuming your app is going to download these from some website. To do this you can create a WebClient and use the DownloadStringAsync method to fetch the story. In the DownloadStringCompleted event handler load the web page using WebClient.NavigateToString.

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