Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

adding Network Security Config
Started by umalemon Feb 15 2019 02:18 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

umalemon

[GLOBAL: userInfoPane.html]
umalemon
  • Contributor

  • 100 posts
  • Corona SDK

I have a question.
 
Added in Corona 2018.3455
Android: adding Network Security Config
 
What is this?
How do I set up?


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,529 posts
  • Enterprise

Do you have any more context about what you're wanting/needing to do here?

 

Rob



[TOPIC: post.html]
#3

umalemon

[GLOBAL: userInfoPane.html]
umalemon
  • Contributor

  • 100 posts
  • Corona SDK

Thank you for the reply.
 
I only want to know about Network Security Config.
Is there no document on this?
What is it used for?


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,529 posts
  • Enterprise

This appears to be something needed to allow http: to continue to work and not require https:

 

This is the Google doc that talks about it:  https://developer.android.com/training/articles/security-config

 

"The default configuration for apps targeting Android 7.0 (API level 24) to Android 8.1 (API level 27) is as follows:"

 

This appears to be the XML file added for this support:

<base-config cleartextTrafficPermitted="true">
    <trust-anchors>
        <certificates src="system" />
    </trust-anchors>
</base-config>

It does not look like this is a developer settable feature, it's just us adding the network XML file.

 

Rob




[topic_controls]
[/topic_controls]