DAB-Co / jam-mobile

Mobile Flutter App of Jam
1 stars 0 forks source link

error on google pixel 5a while opening chromium #106

Closed DBC201 closed 2 years ago

DBC201 commented 2 years ago
E/chromium(22206): [ERROR:simple_index_file_posix.cc(36)] opendir /data/user/0/com.dabco.jam/cache/WebView/Default/HTTP Cache/Code Cache/js: No such file or directory (2)
E/chromium(22206): [ERROR:simple_index_file_posix.cc(36)] opendir /data/user/0/com.dabco.jam/cache/WebView/Default/HTTP Cache/Code Cache/wasm: No such file or directory (2)
E/chromium(22206): [ERROR:simple_index_file.cc(575)] Could not reconstruct index from disk
E/chromium(22206): [ERROR:simple_index_file.cc(575)] Could not reconstruct index from disk
W/com.dabco.jam(22206): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (unsupported, reflection, allowed)
W/cr_media(22206): Requires BLUETOOTH permission
I/cr_X509Util(22206): Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
E/chromium(22206): [ERROR:ssl_client_socket_impl.cc(995)] handshake failed; returned -1, SSL error code 1, net_error -202

got a blank white page after opening the app, while calling /spotify/login

atillaturkmen commented 2 years ago

usesCleartextTraffic="true" ekleyince bu sorun çözüldü fakat bu ayar güvensiz http'ye izin vermek içinmiş.

https://stackoverflow.com/a/55158284

When you call "https://darkorbit.com/" your server figures that it's missing "www" so it redirects the call to "http://www.darkorbit.com/" and then to "https://www.darkorbit.com/", your WebView call is blocked at the first redirection as it's a "http" call. You can call "https://www.darkorbit.com/" instead and it will solve the issue.

Ben rocketdodge.com başına www ekleyince domain bulunamadı diyor bizde www yok demek ki.

atillaturkmen commented 2 years ago

neyse merge'lüyorum biz http kullanmıyoruz zaten, neden http izni istediğini anlamadım.

atillaturkmen commented 2 years ago

@DBC201 https://stackoverflow.com/a/69463169

If you're using an Android 7.0/6/5/4 device (API 24 or below), and your website uses 'Let's Encrypt' SSL certificates to gain HTTPS support for URLs, these devices will no longer trust the Let's Encrypt certificates, starting from 1 September 2021. You will start seeing errors like this in WebViews that load HTTPS pages

Bununla ilgisi olabilir mi?

DBC201 commented 2 years ago

usesCleartextTraffic="true" ekleyince bu sorun çözüldü fakat bu ayar güvensiz http'ye izin vermek içinmiş.

https://stackoverflow.com/a/55158284

When you call "https://darkorbit.com/" your server figures that it's missing "www" so it redirects the call to "http://www.darkorbit.com/" and then to "https://www.darkorbit.com/", your WebView call is blocked at the first redirection as it's a "http" call. You can call "https://www.darkorbit.com/" instead and it will solve the issue.

Ben rocketdodge.com başına www ekleyince domain bulunamadı diyor bizde www yok demek ki.

bendeki hatada cleartext ile ilgili bir şey yazmıyor ki

DBC201 commented 2 years ago

Tamam duzeldi ama cleartext yerine spotify in ca sertifikasini eklemek daha iyi olur

atillaturkmen commented 2 years ago

sadece android için ekledim. ios için ayrı. #58 yaparken bakarım