Is it possible to Embed A Spotfire Visualization in a mobile UIwebview

We have created html page by using JavaScript API spotfire.

File name : spotfire_js.html


        <script type="text/javascript" src="

        var c_serverUrl = "";
        var c_analysisPath = "/users/Inaganti97/Public/Expense Analyzer Dashboard";

        var c_parameters = "";  //Optional configuration block
        var customization = new spotfire.webPlayer.Customization();  //Optional configuration settings

        var app;

        var c_reloadAnalysisInstance = false;

        window.onload = function()
        app = new spotfire.webPlayer.Application(c_serverUrl, customization, c_analysisPath, c_parameters, c_reloadAnalysisInstance);
        //Hide UI elements
        customization.showDodPanel = false;
        customization.showStatusBar = false;
        customization.showToolBar = false;
        customization.showPageNavigation = false;
        customization.showClose = false;
        customization.showAnalysisInfo = true;
        customization.showExportFile = true;
        customization.showExportVisualization = true;
        customization.showUndoRedo = true;
        customization.showFilterPanel = true;

        var viewOne = app.openDocument("demoViz", "page", customization);
        //var viewTwo = app.openDocument("demoViz2", "ProductMgmt", customization);

        <h1>I can haz webview?</h1></body>
        <div id="demoViz"></div>



We have created sample iOS application to load HTML page in UIWebview to display graph. But it shows blank page. No error. 

import UIKit


class ViewController: UIViewController, UIWebViewDelegate{

    @IBOutlet weak var myWebView : UIWebView!

    override func viewDidLoad() {


        let localfilePath = Bundle.main.url(forResource: "spotfire_js", withExtension: "html");

        let myRequest = NSURLRequest(url: localfilePath!);

        myWebView.loadRequest(myRequest as URLRequest);

                // Do any additional setup after loading the view, typically from a nib.


        override func didReceiveMemoryWarning() {


        // Dispose of any resources that can be recreated.


    func webViewDidStartLoad(_ webView : UIWebView) {

        UIApplication.shared.isNetworkActivityIndicatorVisible = true


        func webViewDidFinishLoad(_ webView : UIWebView) {

        UIApplication.shared.isNetworkActivityIndicatorVisible = false



My Question 

1. Is it possbile to load javascript API html page to UIWebview directly ? Why it is blank page?

2. Do we need to host html page somewhere and use link (ex: http://localhost/spotfire_js.html) ?

3. How to use JavaScript API in Mobile application?

Kindly help me....