react-native-webview-bootpay 11.18.14 → 11.18.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,6 +54,7 @@ public class BPCWebViewClient extends WebViewClient {
|
|
|
54
54
|
@Override
|
|
55
55
|
public void onPageFinished(WebView webView, String url) {
|
|
56
56
|
super.onPageFinished(webView, url);
|
|
57
|
+
updateBlindViewIfNaverLogin(webView, url);
|
|
57
58
|
|
|
58
59
|
if (!mLastLoadFailed) {
|
|
59
60
|
BPCWebView reactWebView = (BPCWebView) webView;
|
|
@@ -64,6 +65,14 @@ public class BPCWebViewClient extends WebViewClient {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
private void updateBlindViewIfNaverLogin(WebView webView, String url) {
|
|
69
|
+
if(url.startsWith("https://nid.naver.com")) { //show
|
|
70
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
71
|
+
webView.evaluateJavascript("document.getElementById('back').remove();", null);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
67
76
|
@Override
|
|
68
77
|
public void onPageStarted(WebView webView, String url, Bitmap favicon) {
|
|
69
78
|
super.onPageStarted(webView, url, favicon);
|
package/apple/BPCWebView.m
CHANGED
|
@@ -973,6 +973,8 @@ static NSDictionary* customCertificatesForHost;
|
|
|
973
973
|
decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
|
|
974
974
|
decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
|
|
975
975
|
{
|
|
976
|
+
[self updateBlindViewIfNaverLogin:webView :navigationAction.request.URL.absoluteString];
|
|
977
|
+
|
|
976
978
|
if([self isItunesURL:navigationAction.request.URL.absoluteString]) {
|
|
977
979
|
[self startAppToApp:navigationAction.request.URL];
|
|
978
980
|
decisionHandler(WKNavigationActionPolicyCancel);
|
|
@@ -985,6 +987,15 @@ static NSDictionary* customCertificatesForHost;
|
|
|
985
987
|
}
|
|
986
988
|
|
|
987
989
|
|
|
990
|
+
- (void) updateBlindViewIfNaverLogin:(WKWebView*)webView :(NSString*)url {
|
|
991
|
+
if([url hasPrefix: @"https://nid.naver.com"]) {
|
|
992
|
+
[webView evaluateJavaScript: @"document.getElementById('back').remove();" completionHandler: ^(id result, NSError *error) {
|
|
993
|
+
|
|
994
|
+
}];
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
|
|
988
999
|
- (NSString*) getQueryStringParameter:(NSString*)url :(NSString*)param {
|
|
989
1000
|
NSMutableDictionary *queryStringDictionary = [[NSMutableDictionary alloc] init];
|
|
990
1001
|
NSArray *urlComponents = [url componentsSeparatedByString:@"&"];
|
|
@@ -1080,8 +1091,6 @@ static NSDictionary* customCertificatesForHost;
|
|
|
1080
1091
|
itunesUrl = @"https://apps.apple.com/kr/app/kakaotalk/id362057947";
|
|
1081
1092
|
} else if([sUrl hasPrefix: @"chaipayment"]) {
|
|
1082
1093
|
itunesUrl = @"https://apps.apple.com/kr/app/%EC%B0%A8%EC%9D%B4/id1459979272";
|
|
1083
|
-
} else if([sUrl hasPrefix: @"ukbanksmartbanknonloginpay"]) {
|
|
1084
|
-
itunesUrl = @"https://itunes.apple.com/kr/developer/%EC%BC%80%EC%9D%B4%EB%B1%85%ED%81%AC/id1178872626?mt=8";
|
|
1085
1094
|
}
|
|
1086
1095
|
|
|
1087
1096
|
if(itunesUrl.length > 0) {
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "11.18.
|
|
11
|
+
"version": "11.18.15",
|
|
12
12
|
"homepage": "https://github.com/react-native-webview/react-native-webview#readme",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "node node_modules/react-native/local-cli/cli.js start",
|