Package 

Object SprigWebClient

    • Method Summary

      Modifier and Type Method Description
      Unit onPageFinished(WebView view, String url)
      Boolean shouldOverrideUrlLoading(WebView view, String url) override open url behaviors to open text url link in a external page instead of inside the webview
      Boolean onRenderProcessGone(WebView view, RenderProcessGoneDetail detail) SprigWebView is loaded in the background and invisible unless a survey is shown.
      • Methods inherited from class com.userleap.internal.SprigWebClient

        doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent, shouldOverrideUrlLoading
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onRenderProcessGone

         Boolean onRenderProcessGone(WebView view, RenderProcessGoneDetail detail)

        SprigWebView is loaded in the background and invisible unless a survey is shown. If there's a crash in it, we can't do anything with the SDK, but by returning true here we can at least stop the host application from crashing on Android 26+.

        This is to address https://sprig-inc.atlassian.net/browse/CORE-6611 and to help prevent a crash seen when loading the bundled JS at SDK initialization