Using the BBWebView library Skip Navigation

Using the BBWebView library

BlackBerry Dynamics SDK
contains the BBWebView library that you can use to integrate the
WebView component with a
BlackBerry Dynamics
app. The BBWebView code is available under the com.blackberry.bbwebview package name. The library is located at sdk/libs/handheld/bb_webview in the SDK package.
The BBWebView library supports secure HTTP request interception for an internal network (URL loading, XML, and fetch HTTP requests), data leakage protection for cut, copy, and paste, page history navigation, and a secure cookies store.
The BBWebView library contains the following APIs:
  • com.blackberry.bbwebview.BBChromeClient
  • com.blackberry.bbwebview.BBWebViewClient
  • com.blackberry.bbwebview.BBWebView
  • com.blackberry.bbwebview.WebClientObserver
Note that BBWebView does not currently support:
  • HTTP authentication (Basic, Digest, NTLM)
  • Kerberos
  • File downloading or uploading into the secure container
  • URL schemes (mailto:, geo:, and so on)
  • Web worker (Service worker)
  • Pasting content from a
    BlackBerry Dynamics
    app to WebView using drag and drop
  • Resource caches
  • Secure database
  • Local storage (HTML5)
  • Session storage
  • AutoZSO
  • Secure drag-and-drop data movement between applications
To load files from the local assets folder, you must use the web-like URL format
rather than
. For example, the following code will load the index.html page from the assets folder in BBWebView:
// Initialize BBWebView instance BBWebView webView = ... // Provide url with file name which is located in your application's assets folder webView.loadUrl("");
This method is compatible with the Same-Origin policy and recommended by Google. For more information, see WebViewAssetLoader.