javascript - Android Hybrid App : JQueryMobile ajax is not working with https but works with http -


we have hybrid android app based on jquerymobile [with js/css/html packaged inside apk]. app able fetch json data server [with restful interface] using jqm ajax call [for http url] when trying same thing using https fails.

another bit is: have used bouncycastle based certificate enable tls [on server] working fine native android calls [using java].

now confused why working http not https. hint in regard appreciated. don't think cors/xor problem our ajax http calls working fine.

i'm assuming you're using android webview class? if so, check error implementing method:

 webview.setwebviewclient(new webviewclient() {  public void onreceivedsslerror (webview view, sslerrorhandler handler, sslerror error) {      log.d("ssl_error", "the error is: " + error);  } 

with code, can see error, if any, causing blank page. if it's error can accept, replace log.d line handler.proceed(); (with if condition verify it's same error). ideally, you'd correct whatever issue causing however.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -