简体   繁体   English

更新 salesforce Hybrid cordova 应用程序

[英]Updating salesforce Hybrid cordova app

I am a little new to Salesforce Hybrid Mobile application development.我对 Salesforce 混合移动应用程序开发有点陌生。

I have a well running hybrid application.我有一个运行良好的混合应用程序。

But recently when uploading the APK to play store, play store gives an error但是最近上传APK到play store时,play store报错

Your APK has been rejected for containing security vulnerabilities, which violates the Malicious Behavior policy. The Alerts page has more information about how to resolve the issue. If you submitted an update, the previous version of your app is still live on Google Play.

After some analysis I found that my android platform version is 3.6.x which might be the reason for rejection.经过一番分析,我发现我的android平台版本是3.6.x ,这可能是被拒绝的原因。

So I updated cordova android platform of my existing Salesforce Hybrid app using the following command.因此,我使用以下命令更新了现有 Salesforce 混合应用程序的cordova android 平台。

cordova platform update android

After updating the version of android platform is 5.2.2更新后android平台版本为5.2.2

Salesforce Mobile sdk guide says to reinstall the salesforce plugin Salesforce Mobile sdk 指南说要重新安装 Salesforce 插件

So,所以,

cordova plugin remove com.salesforce

And then进而

cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin

But, while re-adding the plugin it gives the following message但是,在重新添加插件时,它会给出以下消息

Plugin doesn't support this project's cordova-android version. cordova-android: 5.2.2, failed version requirement: 5.0.0
Skipping 'com.salesforce' for android

And again running the project in eclipse gives many errors.再次在 Eclipse 中运行该项目会出现许多错误。

Not able to pin point the specefic issue here.无法在这里指出具体问题。

Any help is appretiated.任何帮助表示赞赏。

Thanks in advance.提前致谢。

You have to update to 5.0.0 instead of 5.2.2 because Salesforce plugin is made to 5.0.0 version.您必须更新到5.0.0而不是5.2.2因为 Salesforce 插件是为5.0.0版本制作的。

You can see that in the plugin.xml file, in the engine tag.您可以在plugin.xml文件的engine标记中看到这一点。

<engines> <engine name="cordova-android" version="5.0.0" /> <engine name="cordova-ios" version="4.2.0" /> </engines>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM