JSON 商店未在 Android 中创建最新版本修复包 7.1.0.00.20160919-1656

JSON Store is not creating in Android for latest version fix pack 7.1.0.00.20160919-1656

下面的示例代码在 Android 的最新修复中不起作用,但如果我们从选项中删除密码字段,那么它可以正常工作。我们在 Android 上遇到错误,但在 IOS

上运行正常

{"src":"initCollection","err":-3,"msg":"INVALID_KEY_ON_PROVISION","col":"people","usr":"test","doc":{},"res":{}}

function wlCommonInit(){
    /*
     * Use of WL.Client.connect() API before any connectivity to a MobileFirst Server is required. 
     * This API should be called only once, before any other WL.Client methods that communicate with the MobileFirst Server.
     * Don't forget to specify and implement onSuccess and onFailure callback functions for WL.Client.connect(), e.g:
     *    
     *    WL.Client.connect({
     *          onSuccess: onConnectSuccess,
     *          onFailure: onConnectFailure
     *    });
     *     
     */

    // Common initialization code goes here

}


function onClick(){
    alert("Click");
    var collectionName = 'people';

    // Object that defines all the collections.
    var collections = {

      // Object that defines the 'people' collection.
      people : {

        // Object that defines the Search Fields for the 'people' collection.
        searchFields : {name: 'string', age: 'integer'}
      }
    };

    // Optional options object.
    var options = {

       username:"test",
      // Optional password, default no passw`enter code here`ord.
      password : '123',

    };

    WL.JSONStore.init(collections, options)

    .then(function () {
        alert("Success in jstore");
    })



    .fail(function (errorObject) {
       // Handle failure for any of the previous JSONStore operations (init, add).
        alert("Failure in jstore : "+ JSON.stringify(errorObject));
    });
};

更新: iFix 现已发布。内部版本号是 7.1.0.0-IF201610060540 .

这是最新可用 iFix 的已知问题。它最近已修复,应该很快可用。

请留意 IBM Fix Central 网站上更新的 iFix 版本,以修复此问题。