반응형
안드로이드가 점점 보안에대해 강화시키고 있는거 같네요
안드로이드 보안 강화 관련 -> https://android-developers.googleblog.com/2018/04/protecting-users-with-tls-by-default-in.html
안드로이드는 마시멜로우부터 우발적 인 암호화되지 않은 연결을 방지하기 위해 노력해왔는데요
pie 버전에서 네트워크보안을 강화하여 http 주소인 웹주소 사용못하고 https로 사용강제하도록 한다네요
이러므로 웹서버와 http로 송신할때 송신이 되지않는경우가 Pie버전에 발견되어서 대처를 햇습니다.
- 대처 방법
menifest 에 아래 처럼 android:usesCleartextTraffic="true" 태그를 추가합니다
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="패키지이름" xmlns:tools="http://schemas.android.com/tools" android:installLocation="auto">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application
android:usesCleartextTraffic="true"
android:theme="@style/UnityThemeSelector"
android:icon="@mipmap/app_icon"
android:label="@string/app_name"
android:isGame="true"
android:banner="@drawable/app_banner">
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:screenOrientation="sensorLandscape" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false">
<intent-filter>
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
</application>
</manifest>
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5; text-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white">cs |
- 다른 대처 방법
아래 링크에 다른대처방법도 잇으니 확인해 보세요
https://gun0912.tistory.com/80
반응형