HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
240 stars 68 forks source link

Your app is not compliant with Google Play Policies #178

Closed PaperMonster closed 2 years ago

PaperMonster commented 2 years ago

We received an email from Google Play that our app is not compliant with Google Play Policies due to Huawei Mobile Services SDK. See following screenshot: policy-violation

package.json

"@hmscore/react-native-hms-push": "^6.1.0-300",

android/build.gradle

buildscript {
    ext {
        buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
        ndkVersion = "21.4.7075529"
    }
    repositories {
        google()
        mavenCentral()
        jcenter()
        maven { 
            url 'https://developer.huawei.com/repo/'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath 'com.google.gms:google-services:4.3.10'
        classpath 'com.huawei.agconnect:agcp:1.4.1.300'
    }
}

allprojects {
    repositories {
        mavenCentral()
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            // url "$rootDir/../node_modules/react-native/android"
            // Replace AAR from original RN with AAR from react-native-v8
            url("$rootDir/../node_modules/react-native-v8/dist")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        maven {
            // prebuilt libv8android.so
            url("$rootDir/../node_modules/v8-android-jit/dist")
        }
        google()
        jcenter()
        // Huawei SDK
        maven { url 'http://developer.huawei.com/repo/' }
    }
}
Xuejiao-Shi commented 2 years ago

Thank you for providing the information regarding this issue. We are very sorry that it brings you inconvinience and are now investigating the root cause of it.

Could you kindly help us with some information to locate this issue?

1.pls leave your APPID, app name and package name.

  1. whether configured the following metadata in your app?
    <meta-data 
    android:name="com.huawei.hms.client.channel.androidMarket" 
    android:value="false" />
PaperMonster commented 2 years ago

@Xuejiao-Shi

  1. 102381117, ชอบช้อป - ShobShop and com.shobshop.shobshopapp
  2. No, and don't see any in merged manifest.
adderly commented 2 years ago

Same here, what could be the cause for this?

sentientmachin3 commented 2 years ago

We use 5.3.0-304 and we dont have this issue.

Xuejiao-Shi commented 2 years ago

@PaperMonster @adderly Your request has been received. We are aware of this issue and are currently investigating. Your application experience won't be affected at this time and we will continue to update you on solutions. Thanks for your understanding and support.

adderly commented 2 years ago

@Xuejiao-Shi I guess, we should have an answer by now..

adderly commented 2 years ago

@Xuejiao-Shi Any updates on this?

alexfov commented 2 years ago

I had to remove huawei libs to publish in google play.

stefan-tremend commented 2 years ago

Any updates on this issue? because those 4 months are coming to an end and will have to remove the huawei libs from app

Xuejiao-Shi commented 2 years ago

@stefan-tremend If you integrate the Push Kit React Native plugin, upgrade the plugin to the latest version will solve this issue.

stefan-tremend commented 2 years ago

I have this packages "@hmscore/react-native-hms-analytics": "^6.3.2-300", "@hmscore/react-native-hms-availability": "^5.2.0-300", "@hmscore/react-native-hms-location": "^5.1.0-303", "@hmscore/react-native-hms-map": "^6.0.1-304" which one, needs to be updated?

Xuejiao-Shi commented 2 years ago

@stefan-tremend You can refer to this document to check the current latest versions of your integrated Kits and update them. For example, Currently the latest SDK version for hms-analytics is 6.3.2.301.

skyplor commented 2 years ago

@stefan-tremend you have to update your map kit to 6.3.1-304. They have stated that they Deleted the capability of prompting users to install HMS Core (APK). in that version

PaperMonster commented 2 years ago

With the latest @hmscore/react-native-hms-push and com.huawei.agconnect:agcp, Google Play does not complain anymore. I'm closing this.

package.json

"@hmscore/react-native-hms-push": "^6.3.0-304",

android/build.gradle

classpath 'com.huawei.agconnect:agcp:1.4.2.301'