package com.hughisaacs2.cordova.plugins.androidscreensaverplugin;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaArgs;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;

import android.annotation.TargetApi;
import android.service.dreams.DreamService;
import android.webkit.WebView;

@TargetApi(17)
public class ScreensaverProvider extends DreamService {
     @Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        // Allow user touch
        setInteractive(true);
        // Hide system UI
        setFullscreen(true);
        // Set the dream layout
        WebView webView = new WebView(this);
        setContentView(webView);

        webView.getSettings().setJavaScriptEnabled(true);
        //webView.getSettings().setGeolocationEnabled(true);
        //webView.getSettings().setDomStorageEnabled(true);
        //webView.getSettings().setAllowFileAccess(true);
        webView.loadUrl("file:///android_asset/www/test.html");
    }
}

@@ -58,24 +58,26 @@
 rplugin;%0D%0A%0D%0A
+//
 import org.a
@@ -108,16 +108,18 @@
 ntext;%0D%0A
+//
 import o
@@ -150,16 +150,18 @@
 aArgs;%0D%0A
+//
 import o
@@ -193,24 +193,26 @@
 Interface;%0D%0A
+//
 import org.a
@@ -241,16 +241,18 @@
 lugin;%0D%0A
+//
 import o
@@ -803,32 +803,34 @@
 ew);%0D%0A%0D%0A        
+//
 webView.getSetti

Update ScreensaverProvider.java