ArronJo / sample-webview

This project is a sample for developing android applications using webview.
20 stars 11 forks source link

SSL Error Handler #1

Open benhibi opened 3 years ago

benhibi commented 3 years ago

When i'm push app on Google play I got 1 notice: For more information on how to address WebView SSL Error Handler alerts. Can you guide me on how to fix it? I thank you very much for this, very good source code. Thanks a lot!

ArronJo commented 3 years ago

Hello. In my case, I coded as follows. Please check the github below for details. -GitHub: https://github.com/ArronJo/sample-webview

@Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { Logger.e(TAG, "[WEBVIEW] onReceivedSslError(): url[" + view.getUrl() + "], handler[" + handler + "], error[" + error + "]");

if (SslError.SSL_NOTYETVALID == error.getPrimaryError()) {
    handler.proceed();
} else if (SslError.SSL_EXPIRED == error.getPrimaryError()) {
    handler.proceed();
} else if (SslError.SSL_IDMISMATCH == error.getPrimaryError()) {
    handler.proceed();
} else if (SslError.SSL_UNTRUSTED == error.getPrimaryError()) {
    handler.proceed();
} else if (SslError.SSL_DATE_INVALID == error.getPrimaryError()) {
    handler.proceed();
} else if (SslError.SSL_INVALID == error.getPrimaryError()) {
    handler.proceed();
} else {
    handler.proceed();
}

//super.onReceivedSslError(view, handler, error);

}

2020년 12월 2일 (수) 오후 2:28, benhibi notifications@github.com님이 작성:

When i'm push app on Google play I got 1 notice: For more information on how to address WebView SSL Error Handler alerts. Can you guide me on how to fix it? I thank you very much for this, very good source code. Thanks a lot!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTPPATZSJZZZGWAJGHVOTSSXF77ANCNFSM4UJ7ROGA .

ArronJo commented 3 years ago

onReceivedSslError() function is a function of WebViewClient.class. It will be applied inside the class that inherits WebViewClient.

-example public class XXX extends WebViewClient { public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {

  ...copy to here...

}

}

-Reference android.webkit package;

public class WebViewClient {

  public void onReceivedSslError (WebView view, SslErrorHandler handler,
          SslError error) {
      handler.cancel();
  }

}

2020년 12월 2일 (수) 오후 8:20, benhibi notifications@github.com님이 작성:

Thanks for your answer! When I add code to MainActivity, an error appears as shown below. Please show me how to fix it. I am very grateful for that. Please sympathize with me because I am not good at code. Best regards! https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA .

benhibi commented 3 years ago

Dear, I have fixed the error, thank you very much. When I put the app on google store, I got the message: "This app is not compatible with your device." I have tried it on many phones using Android OS versions 8, 9 and 10 but they all reported errors. Here is the code I use in Gradle build:

compileSdkVersion 30 defaultConfig { applicationId "com.snc.tcn" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.1"

Please tell me what step did I do wrong? Thank you very much, have a nice weekend!

Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo notifications@github.com đã viết:

onReceivedSslError() function is a function of WebViewClient.class. It will be applied inside the class that inherits WebViewClient.

-example public class XXX extends WebViewClient { public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {

...copy to here...

} }

-Reference android.webkit package;

public class WebViewClient {

public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { handler.cancel(); }

}

2020년 12월 2일 (수) 오후 8:20, benhibi notifications@github.com님이 작성:

Thanks for your answer! When I add code to MainActivity, an error appears as shown below. Please show me how to fix it. I am very grateful for that. Please sympathize with me because I am not good at code. Best regards! https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA .

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

ArronJo commented 3 years ago

It doesn't seem like a big problem in my opinion.

First, how about changing the Android OS Version to 29 and uploading it to the Google Store? If the upload of version 29 is successful, it is recommended to support version 30.

2020년 12월 6일 (일) 오후 2:29, benhibi notifications@github.com님이 작성:

Dear, I have fixed the error, thank you very much. When I put the app on google store, I got the message: "This app is not compatible with your device." I have tried it on many phones using Android OS versions 8, 9 and 10 but they all reported errors. Here is the code I use in Gradle build:

compileSdkVersion 30 defaultConfig { applicationId "com.snc.tcn" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.1"

Please tell me what step did I do wrong? Thank you very much, have a nice weekend!

Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo <notifications@github.com

đã viết:

onReceivedSslError() function is a function of WebViewClient.class. It will be applied inside the class that inherits WebViewClient.

-example public class XXX extends WebViewClient { public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {

...copy to here...

} }

-Reference android.webkit package;

public class WebViewClient {

public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { handler.cancel(); }

}

2020년 12월 2일 (수) 오후 8:20, benhibi notifications@github.com님이 작성:

Thanks for your answer! When I add code to MainActivity, an error appears as shown below. Please show me how to fix it. I am very grateful for that. Please sympathize with me because I am not good at code. Best regards! https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA

.

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739457766, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTPPG7TW2VEDMEUZG7BALSTMJDRANCNFSM4UJ7ROGA .

benhibi commented 3 years ago

Dear, I edited the code as follows:

compileSdkVersion 29 defaultConfig { applicationId "com.snc.tracuunhanh.tcn" minSdkVersion 16 targetSdkVersion 29 versionCode 3 versionName "1.2"

But Google Play still reports errors.

Vào Th 2, 7 thg 12, 2020 vào lúc 09:20 ArronJo notifications@github.com đã viết:

It doesn't seem like a big problem in my opinion.

First, how about changing the Android OS Version to 29 and uploading it to the Google Store? If the upload of version 29 is successful, it is recommended to support version 30.

2020년 12월 6일 (일) 오후 2:29, benhibi notifications@github.com님이 작성:

Dear, I have fixed the error, thank you very much. When I put the app on google store, I got the message: "This app is not compatible with your device." I have tried it on many phones using Android OS versions 8, 9 and 10 but they all reported errors. Here is the code I use in Gradle build:

compileSdkVersion 30 defaultConfig { applicationId "com.snc.tcn" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.1"

Please tell me what step did I do wrong? Thank you very much, have a nice weekend!

Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo < notifications@github.com

đã viết:

onReceivedSslError() function is a function of WebViewClient.class. It will be applied inside the class that inherits WebViewClient.

-example public class XXX extends WebViewClient { public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {

...copy to here...

} }

-Reference android.webkit package;

public class WebViewClient {

public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { handler.cancel(); }

}

2020년 12월 2일 (수) 오후 8:20, benhibi notifications@github.com님이 작성:

Thanks for your answer! When I add code to MainActivity, an error appears as shown below. Please show me how to fix it. I am very grateful for that. Please sympathize with me because I am not good at code. Best regards! https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA

.

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739457766 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEXTPPG7TW2VEDMEUZG7BALSTMJDRANCNFSM4UJ7ROGA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739623162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZBEY2EKRVL7N5HF32HEEDSTQ3YVANCNFSM4UJ7ROGA .

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

ArronJo commented 3 years ago

I think it might be a problem with the screen resolution it supports. You just need to define the resolutions it supports. (In AndroidManifest.xml) <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.snc.sample.webview">

... <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:resizeable="true" android:anyDensity="true" /> ...

2020년 12월 8일 (화) 오전 12:00, benhibi 님이 작성: > Dear, > I edited the code as follows: > > compileSdkVersion 29 > defaultConfig { > applicationId "com.snc.tracuunhanh.tcn" > minSdkVersion 16 > targetSdkVersion 29 > versionCode 3 > versionName "1.2" > > But Google Play still reports errors. > > > Vào Th 2, 7 thg 12, 2020 vào lúc 09:20 ArronJo > > đã viết: > > > It doesn't seem like a big problem in my opinion. > > > > First, how about changing the Android OS Version to 29 and uploading it > to > > the Google Store? > > If the upload of version 29 is successful, it is recommended to support > > version 30. > > > > 2020년 12월 6일 (일) 오후 2:29, benhibi 님이 작성: > > > > > Dear, > > > I have fixed the error, thank you very much. When I put the app on > google > > > store, I got the message: "This app is not compatible with your > device." > > I > > > have tried it on many phones using Android OS versions 8, 9 and 10 but > > they > > > all reported errors. Here is the code I use in Gradle build: > > > > > > compileSdkVersion 30 > > > defaultConfig { > > > applicationId "com.snc.tcn" > > > minSdkVersion 16 > > > targetSdkVersion 30 > > > versionCode 1 > > > versionName "1.1" > > > > > > Please tell me what step did I do wrong? Thank you very much, have a > > > nice weekend! > > > > > > > > > Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo < > > notifications@github.com > > > > > > > đã viết: > > > > > > > onReceivedSslError() function is a function of WebViewClient.class. > > > > It will be applied inside the class that inherits WebViewClient. > > > > > > > > > > > > -example > > > > public class XXX extends WebViewClient { > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > > > > > ...copy to here... > > > > > > > > } > > > > } > > > > > > > > > > > > > > > > -Reference > > > > android.webkit package; > > > > > > > > public class WebViewClient { > > > > > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > handler.cancel(); > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > 2020년 12월 2일 (수) 오후 8:20, benhibi 님이 작성: > > > > > > > > > Thanks for your answer! When I add code to MainActivity, an error > > > appears > > > > > as shown below. Please show me how to fix it. I am very grateful > for > > > > that. > > > > > Please sympathize with me because I am not good at code. > > > > > Best regards! > > > > > https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M > > > > > https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem > > > > > > > > > > — > > > > > You are receiving this because you commented. > > > > > Reply to this email directly, view it on GitHub > > > > > < > > > > > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375 > > > > >, > > > > > or unsubscribe > > > > > < > > > > > > > > > > https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA > > > > > > > > > > . > > > > > > > > > > > > > — > > > > You are receiving this because you are subscribed to this thread. > > > > Reply to this email directly, view it on GitHub > > > > < > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482 > > > >, > > > > or unsubscribe > > > > < > > > > > > https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA > > > > > > > > . > > > > > > > > > > > > > -- > > > > > > ========================= > > > *TRỊNH TRỌNG GIA* > > > Marketing Manager > > > > > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > > > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > > > Hotline: 0902.233.677 > > > Website: www.denhatoto.com > > > > > > — > > > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > > > < > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739457766 > > >, > > > or unsubscribe > > > < > > > https://github.com/notifications/unsubscribe-auth/AEXTPPG7TW2VEDMEUZG7BALSTMJDRANCNFSM4UJ7ROGA > > > > > > . > > > > > > > — > > You are receiving this because you are subscribed to this thread. > > Reply to this email directly, view it on GitHub > > < > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739623162 > >, > > or unsubscribe > > < > https://github.com/notifications/unsubscribe-auth/AEZBEY2EKRVL7N5HF32HEEDSTQ3YVANCNFSM4UJ7ROGA > > > > . > > > > > -- > > ========================= > *TRỊNH TRỌNG GIA* > Marketing Manager > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > Hotline: 0902.233.677 > Website: www.denhatoto.com > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >
benhibi commented 3 years ago

Dear, I found an error. I just need to transfer:

become

<uses-feature android:name="android.hardware.camera" android:required="false" />

Thank you very much for your sharing and for your support. I am starting to learn android for my projects. I hope you will have a channel so I can follow it. Once again, we would like to send you our deepest gratitude.

Vào Th 3, 8 thg 12, 2020 vào lúc 11:20 ArronJo notifications@github.com đã viết:

I think it might be a problem with the screen resolution it supports. You just need to define the resolutions it supports. (In AndroidManifest.xml) <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.snc.sample.webview">

... <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:resizeable="true" android:anyDensity="true" /> ...

2020년 12월 8일 (화) 오전 12:00, benhibi 님이 작성: > Dear, > I edited the code as follows: > > compileSdkVersion 29 > defaultConfig { > applicationId "com.snc.tracuunhanh.tcn" > minSdkVersion 16 > targetSdkVersion 29 > versionCode 3 > versionName "1.2" > > But Google Play still reports errors. > > > Vào Th 2, 7 thg 12, 2020 vào lúc 09:20 ArronJo < notifications@github.com > > > đã viết: > > > It doesn't seem like a big problem in my opinion. > > > > First, how about changing the Android OS Version to 29 and uploading it > to > > the Google Store? > > If the upload of version 29 is successful, it is recommended to support > > version 30. > > > > 2020년 12월 6일 (일) 오후 2:29, benhibi 님이 작성: > > > > > Dear, > > > I have fixed the error, thank you very much. When I put the app on > google > > > store, I got the message: "This app is not compatible with your > device." > > I > > > have tried it on many phones using Android OS versions 8, 9 and 10 but > > they > > > all reported errors. Here is the code I use in Gradle build: > > > > > > compileSdkVersion 30 > > > defaultConfig { > > > applicationId "com.snc.tcn" > > > minSdkVersion 16 > > > targetSdkVersion 30 > > > versionCode 1 > > > versionName "1.1" > > > > > > Please tell me what step did I do wrong? Thank you very much, have a > > > nice weekend! > > > > > > > > > Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo < > > notifications@github.com > > > > > > > đã viết: > > > > > > > onReceivedSslError() function is a function of WebViewClient.class. > > > > It will be applied inside the class that inherits WebViewClient. > > > > > > > > > > > > -example > > > > public class XXX extends WebViewClient { > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > > > > > ...copy to here... > > > > > > > > } > > > > } > > > > > > > > > > > > > > > > -Reference > > > > android.webkit package; > > > > > > > > public class WebViewClient { > > > > > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > handler.cancel(); > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > 2020년 12월 2일 (수) 오후 8:20, benhibi 님이 작성: > > > > > > > > > Thanks for your answer! When I add code to MainActivity, an error > > > appears > > > > > as shown below. Please show me how to fix it. I am very grateful > for > > > > that. > > > > > Please sympathize with me because I am not good at code. > > > > > Best regards! > > > > > https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M > > > > > https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem > > > > > > > > > > — > > > > > You are receiving this because you commented. > > > > > Reply to this email directly, view it on GitHub > > > > > < > > > > > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375 > > > > >, > > > > > or unsubscribe > > > > > < > > > > > > > > > > https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA > > > > > > > > > > . > > > > > > > > > > > > > — > > > > You are receiving this because you are subscribed to this thread. > > > > Reply to this email directly, view it on GitHub > > > > < > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482 > > > >, > > > > or unsubscribe > > > > < > > > > > > https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA > > > > > > > > . > > > > > > > > > > > > > -- > > > > > > ========================= > > > *TRỊNH TRỌNG GIA* > > > Marketing Manager > > > > > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > > > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > > > Hotline: 0902.233.677 > > > Website: www.denhatoto.com > > > > > > — > > > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > > > < > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739457766 > > >, > > > or unsubscribe > > > < > > > https://github.com/notifications/unsubscribe-auth/AEXTPPG7TW2VEDMEUZG7BALSTMJDRANCNFSM4UJ7ROGA > > > > > > . > > > > > > > — > > You are receiving this because you are subscribed to this thread. > > Reply to this email directly, view it on GitHub > > < > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739623162 > >, > > or unsubscribe > > < > https://github.com/notifications/unsubscribe-auth/AEZBEY2EKRVL7N5HF32HEEDSTQ3YVANCNFSM4UJ7ROGA > > > > . > > > > > -- > > ========================= > *TRỊNH TRỌNG GIA* > Marketing Manager > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > Hotline: 0902.233.677 > Website: www.denhatoto.com > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739971837 >, > or unsubscribe > < https://github.com/notifications/unsubscribe-auth/AEXTPPEVUTYAI42BJKU3LRTSTTUYNANCNFSM4UJ7ROGA > > . > — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe .

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

ArronJo commented 3 years ago

Glad you solved the problem.

I should take this opportunity to change it so that devices without cameras can also be used.

Thank you.

2020년 12월 10일 (목) 오전 1:53, benhibi notifications@github.com님이 작성:

Dear, I found an error. I just need to transfer:

become

<uses-feature android:name="android.hardware.camera" android:required="false" />

Thank you very much for your sharing and for your support. I am starting to learn android for my projects. I hope you will have a channel so I can follow it. Once again, we would like to send you our deepest gratitude.

Vào Th 3, 8 thg 12, 2020 vào lúc 11:20 ArronJo <notifications@github.com

đã viết:

I think it might be a problem with the screen resolution it supports. You just need to define the resolutions it supports. (In AndroidManifest.xml) <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.snc.sample.webview">

... <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:resizeable="true" android:anyDensity="true" /> ...

2020년 12월 8일 (화) 오전 12:00, benhibi 님이 작성: > Dear, > I edited the code as follows: > > compileSdkVersion 29 > defaultConfig { > applicationId "com.snc.tracuunhanh.tcn" > minSdkVersion 16 > targetSdkVersion 29 > versionCode 3 > versionName "1.2" > > But Google Play still reports errors. > > > Vào Th 2, 7 thg 12, 2020 vào lúc 09:20 ArronJo < notifications@github.com > > > đã viết: > > > It doesn't seem like a big problem in my opinion. > > > > First, how about changing the Android OS Version to 29 and uploading it > to > > the Google Store? > > If the upload of version 29 is successful, it is recommended to support > > version 30. > > > > 2020년 12월 6일 (일) 오후 2:29, benhibi 님이 작성: > > > > > Dear, > > > I have fixed the error, thank you very much. When I put the app on > google > > > store, I got the message: "This app is not compatible with your > device." > > I > > > have tried it on many phones using Android OS versions 8, 9 and 10 but > > they > > > all reported errors. Here is the code I use in Gradle build: > > > > > > compileSdkVersion 30 > > > defaultConfig { > > > applicationId "com.snc.tcn" > > > minSdkVersion 16 > > > targetSdkVersion 30 > > > versionCode 1 > > > versionName "1.1" > > > > > > Please tell me what step did I do wrong? Thank you very much, have a > > > nice weekend! > > > > > > > > > Vào Th 6, 4 thg 12, 2020 vào lúc 08:58 ArronJo < > > notifications@github.com > > > > > > > đã viết: > > > > > > > onReceivedSslError() function is a function of WebViewClient.class. > > > > It will be applied inside the class that inherits WebViewClient. > > > > > > > > > > > > -example > > > > public class XXX extends WebViewClient { > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > > > > > ...copy to here... > > > > > > > > } > > > > } > > > > > > > > > > > > > > > > -Reference > > > > android.webkit package; > > > > > > > > public class WebViewClient { > > > > > > > > public void onReceivedSslError (WebView view, SslErrorHandler > handler, > > > > SslError error) { > > > > handler.cancel(); > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > 2020년 12월 2일 (수) 오후 8:20, benhibi 님이 작성: > > > > > > > > > Thanks for your answer! When I add code to MainActivity, an error > > > appears > > > > > as shown below. Please show me how to fix it. I am very grateful > for > > > > that. > > > > > Please sympathize with me because I am not good at code. > > > > > Best regards! > > > > > https://drive.google.com/uc?id=0B0zTxIUoqnJKLW0xajZLYjUya2M > > > > > https://drive.google.com/uc?id=16K4GCu_H8VEekshyLkBZQ20m9j5Qtoem > > > > > > > > > > — > > > > > You are receiving this because you commented. > > > > > Reply to this email directly, view it on GitHub > > > > > < > > > > > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-737167375 > > > > >, > > > > > or unsubscribe > > > > > < > > > > > > > > > > https://github.com/notifications/unsubscribe-auth/AEXTPPBMR7WEUPA3VZQCA2TSSYPGVANCNFSM4UJ7ROGA > > > > > > > > > > . > > > > > > > > > > > > > — > > > > You are receiving this because you are subscribed to this thread. > > > > Reply to this email directly, view it on GitHub > > > > < > > > > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-738505482 > > > >, > > > > or unsubscribe > > > > < > > > > > > https://github.com/notifications/unsubscribe-auth/AEZBEY4JV7M3PG4UAZ5BTUDSTA63PANCNFSM4UJ7ROGA > > > > > > > > . > > > > > > > > > > > > > -- > > > > > > ========================= > > > *TRỊNH TRỌNG GIA* > > > Marketing Manager > > > > > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > > > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > > > Hotline: 0902.233.677 > > > Website: www.denhatoto.com > > > > > > — > > > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > > > < > > > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739457766 > > >, > > > or unsubscribe > > > < > > > https://github.com/notifications/unsubscribe-auth/AEXTPPG7TW2VEDMEUZG7BALSTMJDRANCNFSM4UJ7ROGA > > > > > > . > > > > > > > — > > You are receiving this because you are subscribed to this thread. > > Reply to this email directly, view it on GitHub > > < > https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739623162 > >, > > or unsubscribe > > < > https://github.com/notifications/unsubscribe-auth/AEZBEY2EKRVL7N5HF32HEEDSTQ3YVANCNFSM4UJ7ROGA > > > > . > > > > > -- > > ========================= > *TRỊNH TRỌNG GIA* > Marketing Manager > > *CÔNG TY TNHH ĐỆ NHẤT Ô TÔ* > Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. > Hotline: 0902.233.677 > Website: www.denhatoto.com > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-739971837 >, > or unsubscribe > < https://github.com/notifications/unsubscribe-auth/AEXTPPEVUTYAI42BJKU3LRTSTTUYNANCNFSM4UJ7ROGA > > . > — You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ArronJo/sample-webview/issues/1#issuecomment-740365255 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEZBEY4UW6EPNGQPUKUW2YTSTWSPZANCNFSM4UJ7ROGA .

--

========================= TRỊNH TRỌNG GIA Marketing Manager

CÔNG TY TNHH ĐỆ NHẤT Ô TÔ Địa chỉ: 2454 QL1A, P. An Phú Đông, Q.12, Tp. HCM. Hotline: 0902.233.677 Website: www.denhatoto.com

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ArronJo/sample-webview/issues/1#issuecomment-741902417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTPPHIRABEFA5WOL7HDO3ST6TRNANCNFSM4UJ7ROGA .