tryphotino/photino.Native

SetUserAgent Support

Closed this issue · 4 comments

Allow user to set custom User-Agent

It would be interesting to know what your use case is for this.

@MikeYeager to tracking visitor informations. and use injected functions from web pages when open from inner webview.

Great. Thank you @kinosang. This is something we can probably do, but will have to do for each of the 3 browser controls used on the 3 OSs. It would be great if someone from the community could help us out with this.

@kinosang This can be set with the new SetUserAgent() method during PhotinoWindow startup in v2.5.0:

        PhotinoWindow window = new PhotinoWindow()
            .SetTitle("Photino Testing")
            .SetUserAgent("Photino Testing")
            /// more options ...
            .LoadRawString("Hello World!");