在我们包含iOS和Android环境的项目中,
突然发生直接更新时,我们的Android应用程序失败了。 iOS仍然可以正常工作。
有没有办法查看直接更新功能试图用来更新自己的地址?
现在我们得到的是:
E / WLDroidGap(23185):下载应用程序更新文件失败。
UPDATE :: 环境是 https - >防火墙 - > netscaler - > worklight服务器
我确实让网络人员在netscaler中创建了一个http端点,这很有效。 因此https的某些内容会直接更新问题。
我们注意到init调用返回了一个响应。
success: /*-secure-
D/AppName ( 682): {"gadgetProps":{"directUpdate":{"checksum":328818244,"updateSize":1346819,"availableSkins":["default"]},"ENVIRONMENT":"android"},"userPrefs":{},"WL-Authentication-Success":{"wl_deviceNoProvisioningRealm":{"userId":"device","attributes":{"mobileClientData":"com.worklight.core.auth.impl.MobileClientData@3ff51267"},"isUserAuthenticated":1,"displayName":"device"},"wl_antiXSRFRealm":{"userId":"antiXSRF","attributes":{"savedInstanceId":"l057614d2gsf26emf8lr6kndn1"},"isUserAuthenticated":1,"displayName":"antiXSRF"}},"userInfo":{"wl_deviceNoProvisioningRealm":{"userId":"device","attributes":{"mobileClientData":"com.worklight.core.auth.impl.MobileClientData@3ff51267"},"isUserAuthenticated":1,"displayName":"device"},"wl_anonymousUserRealm":{"userId":"0738882f-8b37-4609-acd5-dc2333438692","attributes":{},"isUserAuthenticated":1,"displayName":"0738882f-8b37-4609-acd5-dc2333438692"},"WorklightConsole":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null},"wl_deviceAutoProvisioningRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null},"wl_authenticityRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null},"wl_antiXSRFRealm":{"userId":"antiXSRF","attributes":{"savedInstanceId":"l057614d2gsf26emf8lr6kndn1"},"isUserAuthenticated":1,"displayName":"antiXSRF"},"wl_remoteDisableRealm":{"userId":"NullLoginModule","attributes":{},"isUserAuthenticated":1,"displayName":"NullLoginModule"},"SampleAppRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null},"myserver":{"userId":"0738882f-8b37-4609-acd5-dc2333438692","attributes":{},"isUserAuthenticated":1,"displayName":"0738882f-8b37-4609-acd5-dc2333438692"}}}*/
但直接更新的调用失败了::
D/ ( 682): HostConnection::get() New Host Connection established 0x2a632910, tid 695
D/dalvikvm( 682): GC_CONCURRENT freed 313K, 5% free 8477K/8903K, paused 18ms+35ms, total 133ms
E/WLDroidGap( 682): Failed downloading application update file.
很难诊断,因为IBM似乎捕获了IOException并提供了一个预设消息
答案 0 :(得分:1)
我们的问题结果是服务器上的证书发生了变化,整个链条没有导入服务器。由于它来自不受android信任的证书颁发机构,我们需要整个链(IOS确实信任这个权限,这就是为什么它没有显示问题)。
init工作的原因但更新不是:init由webview完成,如果android manifest xml启用了调试,则Web视图允许不受信任的证书。
答案 1 :(得分:0)
这是在生产中还是在开发期间?