snipt

Ctrl+h for KB shortcuts

Text only

Android/Cordova: http requests not working on jarsigned app

1
2
3
4
5
Only works on debug.
http works, https doesn't.

The problem could come from the certificate:
http://stackoverflow.com/questions/20036260/phonegap-android-app-ajax-requests-to-https-fail-with-status-0
https://snipt.net/embed/b57a79b32ec8fc0a20de53764adc8a19/
/raw/b57a79b32ec8fc0a20de53764adc8a19/
b57a79b32ec8fc0a20de53764adc8a19
text
Text only
5
2017-01-01T06:31:45
True
False
True
Jul 29, 2014 at 11:45 AM
/api/public/snipt/135973/
androidcordova-http-requests-not-working-on-jarsigned-app-50e8fd6a
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Only works on debug. </span><span id="L-2"><a name="L-2"></a>http works, https doesn&#39;t. </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>The problem could come from the certificate: </span><span id="L-5"><a name="L-5"></a>http://stackoverflow.com/questions/20036260/phonegap-android-app-ajax-requests-to-https-fail-with-status-0 </span></pre></div> </td></tr></table>
android, certificate, http