我需要关闭android应用程序的直接更新。
我不评论这句话:
<mobileSecurityTest name="mobileTests">
<testAppAuthenticity/>
<testDeviceId provisioningType="none" />
<testUser realm="myMobileLoginForm" />
<testDirectUpdate mode="perSession" />
</mobileSecurityTest>并在<testDirectUpdate mode="perSession" />中用<testDirectUpdate mode="disabled" />更改authenticationConfig.xml。
然后将securityTest="mobileTests"添加到application-descriptor.xml上。看起来是这样的:
<android version="1.2" securityTest="mobileTests">
...
</android>直接更新停止了,但随后弹出一条警报,说:
处理来自应用程序的请求时遇到错误。
每当应用程序试图访问适配器中的后端服务器时,都会发生此错误。
有人知道如何解决这个错误吗?
发布于 2015-12-23 05:47:58
错误是由于包含了<appAuthenticity>测试。不能首先添加此测试w/out,以正确配置应用程序以使用“应用程序真实性保护”。
您可以在这里了解更多有关此问题的信息:https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/authentication-security/application-authenticity-protection/
如果不需要真实性,只需将该行从authenticationConfig.xml中的安全测试中删除即可。
https://stackoverflow.com/questions/34357290
复制相似问题