Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm mobilefirst 每次打开应用程序并调用适配器调用后,Worklight应用程序都会更新_Ibm Mobilefirst_Worklight Server_Worklight Runtime - Fatal编程技术网

Ibm mobilefirst 每次打开应用程序并调用适配器调用后,Worklight应用程序都会更新

Ibm mobilefirst 每次打开应用程序并调用适配器调用后,Worklight应用程序都会更新,ibm-mobilefirst,worklight-server,worklight-runtime,Ibm Mobilefirst,Worklight Server,Worklight Runtime,我正在使用Worklight 6.2消费者版,并对我的应用程序进行了以下配置: application-descriptor.xml配置 <iphone applicationId="MyApp" bundleId="ex.am.ple" version="1.0" securityTest="customTests"> <worklightSettings include="false"/> <security>

我正在使用Worklight 6.2消费者版,并对我的应用程序进行了以下配置:

application-descriptor.xml配置

<iphone applicationId="MyApp" bundleId="ex.am.ple"  version="1.0" securityTest="customTests">
        <worklightSettings include="false"/>
        <security>
            <encryptWebResources enabled="false"/>
            <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
        </security>
    </iphone>

authenticationConfig.xml配置 **


**

我发布应用程序更新-->打开我的应用程序-->调用适配器过程-->应用程序请求更新-->应用程序更新-->关闭应用程序-->打开我的应用程序-->调用适配器过程-->应用程序请求更新


每次我关闭应用程序并调用适配器程序时,都会发生上述情况。是设备没有保存更新的资源,还是我的配置有问题?

我可以想到两种情况会触发重复的直接更新请求:

  • 设备上安装的web资源与部署到Worklight Server的web资源不同,反之亦然;如果要进行更改(并将应用程序从Eclipse安装到设备,但不更新服务器;这是重复直接更新请求的方法),则需要确保始终重新部署更新的.wlapp

  • 您的拓扑中有多个服务器,但它们不同步,因此每当应用程序连接时(如果您有负载平衡器),它都会在服务器之间跳转,其中一个更新,另一个不更新。.wlapp应该部署到所有服务器,但更重要的是,应该将服务器设置为服务器场


  • 1.这是在eclipse的开发环境中发生的,还是在外部服务器的生产环境中发生的?如果它位于外部服务器中,请提供从构建.wlapp到部署它的完整步骤。你在做什么?2.为什么需要调用适配器来获取更新?您的应用程序中没有使用wl.client.connect吗?在main.js文件中的应用程序中有wl.client.connect()调用。但应用程序并没有在应用程序启动时得到更新,而是在用户登录(通过适配器过程调用)成功后显示更新对话框。我在QA环境中进行测试,并通过ANT脚本构建了所有内容。我已经通过ant脚本部署了.war,然后通过worklight控制台部署了适配器和应用程序.wlapp文件。您是否可以共享日志?设备的IOS版本?检查设备日志以确认文件是否已下载?可能是下载被中断了。我现在只使用一台服务器,第二点对我来说根本无效。关于第一点,在进行更新之后,服务器web资源和设备web资源如何会不同步?请再次测试,但不要使用Ant脚本。从eclipse构建。它还会发生吗?
    <customSecurityTest name="customTests">
                <test realm="wl_antiXSRFRealm" step="1"/>
                <test realm="wl_authenticityRealm" step="1"/>
                <test realm="wl_remoteDisableRealm" step="1"/>
                <test realm="wl_anonymousUserRealm" isInternalUserID="true" step="1"/>
                <test realm="wl_deviceAutoProvisioningRealm" isInternalDeviceID="true" step="2"/>
            </customSecurityTest>