New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-26377] Android: Allow non-https requests to work when targeting Android P #10319
Conversation
…g Android P - Modified "AndroidManifest.xml" template to set <application/> attribute "android:usesCleartextTraffic" to true for backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
This looks good, but what if someone updates an existing tiapp.xml to target Android P? Maybe we should also update the build scripts to insert this attribute into the tiapp.xml?
This change will always insert the Also, the |
@jquick-axway Is it overridable? For example, if an (enterprise) customer wants to explicitly disallow http connections. |
Yes. In fact, that's one of the tests above. :) |
Generated by 🚫 dangerJS |
FR Passed.
Studio Ver: 5.1.1.201809051655 |
Just to be clear, the
The above are Android OS limitations on Google's end. See... |
JIRA:
https://jira.appcelerator.org/browse/TIMOB-26377
Summary:
<application/>
attribute"android:usesCleartextTraffic"
totrue
for backward compatibility.false
.WebView Test:
<application/>
tag commented out.)<application/>
tag from the "tiapp.xml". (Note that settingusesCleartextTraffic
tofalse
blocks "http" requests.)WebView
fails to load page and shows a "Webpage not available" error message. (This is good because it's honoring the manifest setting.)tiapp.xml
app.js
HTTPClient Test:
"Cleartext HTTP traffic to <URL> not permitted"
response onscreen. Instead, you see the source of https://www.google.com.