Answered

Unmask WKWebView (iOS )

Hi there !
I would like to unmask content of a WKWebView, so that I can see it in the fullstory. 

My content in a WKWebView is  a String, which I inject into a WKWebView, using this function webView.loadHTMLString(string, baseURL: nil).

How can I unmask this WKWebView ?

0

Comments

3 comments

  • Hi Maksim,

    You have a couple of options to unmask the web page that is loaded within the webview:
     

    1. Code-First Unmasking: If you have access to the source code of the URL loaded via the webview, you can implement code-first unmasking by adding class="fs-unmask" to the parent elements in the webpage you wish to unmask. This method gives you precise control over what is unmasked.
    2. Inspect Mode for Privacy Rules: Alternatively, you can use the inspect mode to apply privacy rules directly within FullStory. Here's some additional information to help you get started: https://help.fullstory.com/hc/en-us/articles/360044363513-How-to-Update-Mobile-Privacy-Settings-in-Fullstory#01FHE6RP76DE1GMJ5NGEA43J7D

    Cheers,

    Uday

     

    0
  • Dear Uday, I inject raw HTML string into a WKWebView (there is no URL involved).
    Are there other way to unmask WKWebView except using Inspect Mode for Privacy Rules in this particular case ?
     

    0
  • Hi Maksim,

    You can add class="fs-unmask" to the elements you want to unmask.

    Thanks,

    Uday

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post