简体   繁体   English

被Google Play商店拒绝的phonegap android应用

[英]phonegap android app rejected by google play store

I uploaded an apk file for my app after completing the necessary formalities on the google play store. 在Google Play商店上完成必要的手续后,我为我的应用上传了apk文件。
After few minutes i checked my account which is showing following message, 几分钟后,我检查了显示以下消息的帐户,

Your APK has been rejected for containing security vulnerabilities, which violates the Malicious Behavior policy. 您的APK因包含安全漏洞而被拒绝,该漏洞违反了“恶意行为”政策。 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. 如果您提交了更新,则您的应用程序的先前版本仍可在Google Play上使用。

I received an email saying, 'Below is the list of issues and the corresponding APK versions that were detected in your recent submission. 我收到一封电子邮件,说:“以下是问题列表以及您最近提交的文件中检测到的相应APK版本。 Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK. 请尽快升级您的应用,并增加已升级APK的版本号。

The vulnerabilities were fixed in Apache Cordova v.4.1.1 or higher. 该漏洞已在Apache Cordova v.4.1.1或更高版本中修复。

我正在附上相同错误消息的屏幕截图

Below is my config.xml file 下面是我的config.xml文件

<?xml version='1.0' encoding='utf-8'?>
<widget id="in.happyfood.app" version="0.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap = "http://phonegap.com/ns/1.0"/>
<name>HappyFood</name>
<description>
    HappyFood: Happy Food Makes Happy Mood
</description>
<author email="contact@medixpress.in" href="http://happyfood.in">
    Happy Food
</author>
<content src="index.html" />
<access origin="*" />

<preference name="windows-publisher-id" value="42688C60-E010-4B6B-8F2A-F22CD6DBE15F" />
<preference name="windows-publisher-display-name" value="InnoThoughts" />


<preference name="phonegap-version" value="3.6.3" />
<preference name="orientation"      value="default" />
<preference name="target-device"    value="universal" />
<preference name="fullscreen"       value="false" />
<preference name="webviewbounce"    value="false" />

<icon src="res/icon.png" />
<icon src="res/icon/android/happy-food-logo_1_48x48.png"   gap:platform="android"    gap:density="ldpi" />
<icon src="res/icon/android/happy-food-logo_2_36x36.png"   gap:platform="android"    gap:density="mdpi" />
<icon src="res/icon/android/happy-food-logo_3_72x72.png"   gap:platform="android"    gap:density="hdpi" />
<icon src="res/icon/android/happy-food-logo_4_96x96.png"  gap:platform="android"    gap:density="xhdpi" />
<icon src="res/icon/blackberry/icon-80.png"     gap:platform="blackberry" />
<icon src="res/icon/blackberry/icon-80.png"     gap:platform="blackberry" gap:state="hover"/>
<icon src="res/icon/ios/icon-57.png"            gap:platform="ios"        width="57" height="57" />
<icon src="res/icon/ios/icon-72.png"            gap:platform="ios"        width="72" height="72" />
<icon src="res/icon/ios/icon-57-2x.png"         gap:platform="ios"        width="114" height="114" />
<icon src="res/icon/ios/icon-72-2x.png"         gap:platform="ios"        width="144" height="144" />
<icon src="res/icon/ios/icon-180.png"           gap:platform="ios"        width="180" height="180" />
<icon src="res/icon/webos/icon-64.png"          gap:platform="webos" />
<icon src="res/icon/windows-phone/icon-48.png"  gap:platform="winphone" />
<icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone"   gap:role="background" />

<icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" />

I built the app in following steps 我按以下步骤构建了应用程序

  1. Created my html5, css3 and js files. 创建了我的html5,css3和js文件。
  2. Uploaded them to build.phonegap.com. 将它们上传到build.phonegap.com。
  3. Uploaded keystore file and unlocked my app by entering certificate and keystore password. 上载密钥库文件并通过输入证书和密钥库密码来解锁我的应用程序。
  4. Finally downloaded the file from build.phonegap.com and then uploaded it to playstore. 最终从build.phonegap.com下载了文件,然后将其上传到playstore。

You may try building your application with newer versions of PhoneGap, as mentioned by Google Play team. 如Google Play小组所述,您可以尝试使用较新版本的PhoneGap构建应用程序。 You will need to change: 您将需要更改:

<preference name="phonegap-version" value="3.6.3" />

to something like: 像这样:

<preference name="phonegap-version" value="5.1.1" />

and update the version of PhoneGap CLI installed on your development machine(s). 并更新开发计算机上安装的PhoneGap CLI的版本。

The older versions of PhoneGap had security vulnerabilities that are fixed in the newer versions. PhoneGap的较旧版本具有在较新版本中修复的安全漏洞。 Building your application with newer version will make your application more secure and your application will hence be accepted on Google Play Store. 使用较新版本构建应用程序将使您的应用程序更安全,因此您的应用程序将在Google Play商店中被接受。

Finally solved the issue by changing the config.xml file as below: 最后,通过如下更改config.xml文件解决了该问题:

<?xml version='1.0' encoding='utf-8'?><widget id="in.happyfood.app" version="0.0.1" android-versionCode="13" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HappyFood</name> <description> HappyFood:Happy Food Makes Happy Mood </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Innothoughts </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" spec="1" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <engine name="android" spec="~5.2.2" /> </widget>

Just published the app as well.. thanks for the help.. 刚刚发布了该应用程序。.感谢您的帮助。

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

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