|
|
@@ -11,6 +11,7 @@ import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
import android.webkit.JavascriptInterface;
|
|
|
import android.webkit.SslErrorHandler;
|
|
|
+import android.webkit.WebChromeClient;
|
|
|
import android.webkit.WebSettings;
|
|
|
import android.webkit.WebView;
|
|
|
import android.webkit.WebViewClient;
|
|
|
@@ -61,6 +62,8 @@ public class CouponMallFragment extends FragmentBase<CouponMallPresenter> implem
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ webView.setWebChromeClient(new WebChromeClient());
|
|
|
+
|
|
|
init(webView);
|
|
|
|
|
|
webView.addJavascriptInterface(this, WebConstant.OBJECT_ID);
|
|
|
@@ -191,6 +194,7 @@ public class CouponMallFragment extends FragmentBase<CouponMallPresenter> implem
|
|
|
"<head>\n" +
|
|
|
"\t<script language=\"JavaScript\">\n" +
|
|
|
"\tfunction onAuthConfirmed() {\n" +
|
|
|
+ "\t\talert(\"인증 완료\");\n" +
|
|
|
" \t\tdocument.getElementById('textMessageFromApp').innerHTML = \"인증 완료\";\n" +
|
|
|
"\t}\n" +
|
|
|
"\tfunction requestAuth(){\n" +
|
|
|
@@ -230,6 +234,7 @@ public class CouponMallFragment extends FragmentBase<CouponMallPresenter> implem
|
|
|
"\n" +
|
|
|
"\t회원 가입 :\n" +
|
|
|
"\t<input type=\"button\" value=\"onSubscribeSelected\" onclick=\"onSubscribeSelected()\" style=\"left:50%;\"/>\n" +
|
|
|
+ "\t\n" +
|
|
|
"</body>\n" +
|
|
|
"</html>";
|
|
|
}
|