2424public class WebAppActivity extends Activity implements WebAppBridgeInterface {
2525 WebView webview ;
2626 final String url = "https://test-shop.bootpay.co.kr" ;
27+
28+
29+
2730 final String android_application_id = "5b14c0ffb6d49c40cda92c4e" ;
2831
2932
@@ -33,6 +36,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3336 setContentView (R .layout .activity_webapp );
3437 webview = findViewById (R .id .webview );
3538 webview .setWebViewClient (new BWebviewClient ());
39+ webview .getSettings ().setUserAgentString ("HINTER/Android" );
40+
3641 webview .setWebChromeClient (new BChromeClient ());
3742 webview .addJavascriptInterface (new WebAppBridge (this ), "Android" );
3843 CookieManager .getInstance ().setAcceptCookie (true );
@@ -130,11 +135,13 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
130135 else
131136 gotoMarket (intent , view .getContext ());
132137 } else if (isMarket (url )) {
133- return start (intent , view .getContext ());
138+ if (!(isExistInfo (intent , view .getContext ()) || isExistPackage (intent , view .getContext ())))
139+ return gotoMarket (intent , view .getContext ());
140+ else
141+ return true ;
134142 } else if (isSpecialCase (url )) {
135143 return start (intent , view .getContext ());
136144 }
137-
138145 return url .contains ("https://bootpaymark" );
139146 }
140147
@@ -156,7 +163,7 @@ private Boolean isMarket(String url) {
156163 }
157164
158165 private Boolean isSpecialCase (String url ) {
159- return url .matches ("^shinhan\\ S+$" ) || url .startsWith ("kftc-bankpay://" );
166+ return url .matches ("^shinhan\\ S+$" ) || url .startsWith ("kftc-bankpay://" ) || url . startsWith ( "v3mobileplusweb://" ) ;
160167 }
161168
162169 private Boolean isExistInfo (Intent intent , Context context ) {
0 commit comments