asales Expert Licensed User Longtime User Jul 4, 2019 #1 I use B4A 9.30 and OkHttpUtils2 in most of my apps to download images and post/get to a PHP server hosted in a non-https site. I just change the target SDK to 28 in manifest and compile the app. Until now all the functions thats uses internet still working. When I need to use this lines in my apps?: Code: CreateResourceFromFile(Macro, Core.NetworkClearText)
I use B4A 9.30 and OkHttpUtils2 in most of my apps to download images and post/get to a PHP server hosted in a non-https site. I just change the target SDK to 28 in manifest and compile the app. Until now all the functions thats uses internet still working. When I need to use this lines in my apps?: Code: CreateResourceFromFile(Macro, Core.NetworkClearText)
DonManfred Expert Licensed User Longtime User Jul 4, 2019 #2 android.jar / targetSdkVersion / minSdkVersion Upvote 0
asales Expert Licensed User Longtime User Jul 4, 2019 #3 DonManfred said: android.jar / targetSdkVersion / minSdkVersion Click to expand... I found the line above in this post, but I don't have enough information to answer my questions: - whats is a "non-ssl (non-https) communication" in B4A? - I use OkHttpUtils2 in most of my apps. I need to use this lines in the manifest? Thanks in advance. Upvote 0
DonManfred said: android.jar / targetSdkVersion / minSdkVersion Click to expand... I found the line above in this post, but I don't have enough information to answer my questions: - whats is a "non-ssl (non-https) communication" in B4A? - I use OkHttpUtils2 in most of my apps. I need to use this lines in the manifest? Thanks in advance.
DonManfred Expert Licensed User Longtime User Jul 4, 2019 #4 asales said: whats is a "non-ssl (non-https) communication" in B4A? Click to expand... communication with a webservice over http. Not https asales said: I need to use this lines in the manifest? Click to expand... with targetsdk 28 yes if you do use http instead of https. Scure your webservice and add a SSL Certificate. Use HTTPS and you dont need this in manifest. Upvote 0
asales said: whats is a "non-ssl (non-https) communication" in B4A? Click to expand... communication with a webservice over http. Not https asales said: I need to use this lines in the manifest? Click to expand... with targetsdk 28 yes if you do use http instead of https. Scure your webservice and add a SSL Certificate. Use HTTPS and you dont need this in manifest.
asales Expert Licensed User Longtime User Jul 5, 2019 #5 Thanks. I tested the app in a device with Android 9 and if I don't put the line, I get this error: Code: ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to www.myserverphp.com not permitted by network security policy, Response: So, problem solved. I need this line. Upvote 0
Thanks. I tested the app in a device with Android 9 and if I don't put the line, I get this error: Code: ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to www.myserverphp.com not permitted by network security policy, Response: So, problem solved. I need this line.