Ibm mobilefirst Mobilefirst 8.0 cordova应用程序无法连接服务器

Ibm mobilefirst Mobilefirst 8.0 cordova应用程序无法连接服务器,ibm-mobilefirst,Ibm Mobilefirst,MobileFirst 8.0版应用程序的POC,我创建了示例应用程序和基于maven的适配器。最后,我调用了adapter index.js文件来调用适配器,当我使用浏览器模拟器时,它工作正常,但当我安装android设备时,它不工作,我在android LOGCAT中发现了这个错误 [错误:xwalk_autofill_client.cc(121)]未在虚拟void中实现xwalk::XWalkAutofillClient::onfirstUserTestureObserved()中达到 如

MobileFirst 8.0版应用程序的POC,我创建了示例应用程序和基于maven的适配器。最后,我调用了adapter index.js文件来调用适配器,当我使用浏览器模拟器时,它工作正常,但当我安装android设备时,它不工作,我在android LOGCAT中发现了这个错误

[错误:xwalk_autofill_client.cc(121)]未在虚拟void中实现xwalk::XWalkAutofillClient::onfirstUserTestureObserved()中达到

如何解决这个问题

请在下面找到实现

adapter
<?xml version="1.0" encoding="UTF-8"?>
<!--
 Licensed Materials - Property of IBM
 5725-I43 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved.
 US Government Users Restricted Rights - Use, duplication or
 disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
-->
<mfp:adapter name="HttpAdapter"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mfp="http://www.ibm.com/mfp/integration"
    xmlns:http="http://www.ibm.com/mfp/integration/http">

 <displayName>HttpAdapter</displayName>
 <description>HttpAdapter</description>
 <connectivity>
  <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
   <protocol>https</protocol>
   <domain>mobilefirstplatform.ibmcloud.com</domain>
   <port>443</port>
   <connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
   <socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
   <maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>
  </connectionPolicy>
 </connectivity>

 <procedure name="getFeed" secured="false"/>
 <procedure name="unprotected" secured="false"/>

</mfp:adapter>
adapter implementation
function getFeed(tag) {
 var input = {
     method : 'get',
     returnedContentType : 'xml',
     path : getPath(tag)
 };

 return MFP.Server.invokeHttp(input);
}

/**
 * Helper function to build the URL path.
 */
function getPath(tag){
    if(tag === undefined || tag === ''){
        return 'feed.xml';
    } else {
        return 'blog/atom/' + tag + '.xml';
    }
}

/**
 * @returns ok
 */
function unprotected(param) {
 return {result : "Hello from unprotected resource"};
}
apps implementation
function myFunction(){
 console.log('==================== inside calling ==================');
 var resourceRequest = new WLResourceRequest(
         "/adapters/HttpAdapter/getFeed",
         WLResourceRequest.GET,3000
     );

    resourceRequest.setQueryParameter("params", "['']");

    resourceRequest.send().then(
        function(response) {
         alert("------- success " +JSON.stringify(response));
        },
        function() {
         alert("----------- >>> errror ------");
        }
    )
}
适配器
HttpAdapter
HttpAdapter
https
mobilefirstplatform.ibmcloud.com
443
30000
30000
50
适配器实现
函数getFeed(标记){
变量输入={
方法:“get”,
returnedContentType:'xml',
路径:getPath(标记)
};
返回MFP.Server.invokeHttp(输入);
}
/**
*帮助函数来构建URL路径。
*/
函数getPath(标记){
如果(标记===未定义| |标记===''){
返回'feed.xml';
}否则{
返回'blog/atom/'+tag+'.xml';
}
}
/**
*@返回ok
*/
未保护的函数(参数){
返回{result:“Hello from unprotected resource”};
}
应用程序实现
函数myFunction(){
console.log('=====================================================================================');
var resourceRequest=新的WLResourceRequest(
“/adapters/HttpAdapter/getFeed”,
WLResourceRequest。获取,3000
);
resourceRequest.setQueryParameter(“参数”、“[”]”);
resourceRequest.send()。然后(
功能(响应){
警报(“----成功”+JSON.stringify(响应));
},
函数(){
警报(“------------>>>错误------”);
}
)
}

请在HTML文件中使用mata标记,它将解决android的问题

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'" />


提供您的实现。。。你什么都没提供。为什么要在评论中写这个?删除这些评论并单击问题中的编辑按钮。您还提到“xwalk”。你安装了问题中没有提到的东西吗?什么都提。