我的测试Android设备是:MobileFirst 7.1加密缓存ERROR_COULD_NOT_GENERATE_KEY
- Genymotion自定义电话5.1.0
- HTC M9 5.0.2
MobileFirst平台:7.1.0 2015年至1214年
当我尝试使用此代码使用加密缓存API时:
WL.EncryptedCache.open("UserInfo", true,
function(res){console.log("success !!");},
function(res){console.log("errorCode : " + JSON.stringify(res));});
然后,我得到错误回调
错误码:11
这的errorCode应该是WL.EncryptedCache.ERROR_COULD_NOT_GENERATE_KEY。
但此代码在iOS设备中正常工作。
我无法找到有关此错误代码Knowledge Center
有什么不对加密缓存API或Android设备的任何信息?
它是否在股票Android设备作为与genymotion相反的工作? –
嗨伊丹,我测试真正的设备HTC M9(5.0.2)仍然有这个错误 – DannyYang
我试试这个示例代码,但结果相同。 https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/data/storing-sensitive-data-in-encrypted-cache/#create – DannyYang