Search Unity

Official Xiaomi Mi Game Center Integration will cause violation of Google Play prominent disclosure guideline

Discussion in 'Unity IAP' started by leon_chen, Jun 19, 2019.

  1. leon_chen

    leon_chen

    Unity Technologies

    Joined:
    Oct 7, 2016
    Posts:
    2
    We noticed an Android build created with Xiaomi Mi Game Center integration will result in being rejected by Google Play due to the violation of its prominent disclosure guideline. Unity is actively working with Xiaomi to resolve the issues caused by Alipay SDK or library and we will keep everyone posted on updates.

    In the meantime, you may remove the Xiaomi Mi Game Center from the “Build Settings” window (see image below) and rebuild the APK. It will resolve the prominent disclosure violation issue.



    Since any previous builds affected by Xiaomi Mi Game Center integration might also cause rejection from Google Play, we recommend you remove previous builds from their Artifact library and any Alpha/Beta builds on Google Play Console.

    It’s important to note that Unity’s default Android build doesn’t include Xiaomi Mi Game Center integration. The Xiaomi Mi Game Center integration is only intended for creating builds for Xiaomi Mi Store. Therefore, we would not recommend submitting a Xiaomi Mi Game Center build to Google Play.
     
    Huldor likes this.
  2. Krastina

    Krastina

    Joined:
    Sep 4, 2019
    Posts:
    6
    I have the same problem, people with xiaomi cant play my game, i need to add xiaomi mi game center, but if i add that, google play cant upload game with added xiaomi mi game center.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    With Xiaomi enabled, you'll want to publish on the Xiaomi store.
     
  4. gferrari

    gferrari

    Joined:
    Jan 14, 2015
    Posts:
    135
    I have this problem but i dont have the button. I have 2019.2.9f1

    upload_2019-10-15_0-56-28.png
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show the contents of your Android manifest. You can use Analyze APK... from Android Studio.
     
  6. gferrari

    gferrari

    Joined:
    Jan 14, 2015
    Posts:
    135
    I don't have Android Studio, but I open my Unitychannel.aar and I found this, I set
    android:exported="false"
    and comment some permission so I will try with that


    I'm living in china and I download Unity from the oficial site, maybe that is the reason we can't remove Xiaomi from the build settings?

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity.channel.sdk.editor.xiaomi"
    android:versionCode="18"
    android:versionName="v1.1" >

    <uses-sdk android:minSdkVersion="15" />

    <uses-permission android:name="android.permission.GET_TASKS" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <!-- <uses-permission android:name="com.xiaomi.sdk.permission.PAYMENT" /> -->
    <!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" /> -->
    <!-- <uses-permission android:name="android.permission.GET_ACCOUNTS" /> -->
    <uses-permission android:name="android.permission.INTERNET" />
    <!-- <uses-permission android:name="com.xiaomi.permission.AUTH_SERVICE" /> -->

    <application>

    <!-- Xiaomi SDK Need -->
    <activity
    android:name="com.xiaomi.gamecenter.sdk.ui.MiActivity"
    android:configChanges="orientation|screenSize"
    android:screenOrientation="behind"
    android:theme="@android:style/Theme.Translucent.NoTitleBar" >
    </activity>
    <activity
    android:name="com.xiaomi.gamecenter.sdk.ui.PayListActivity"
    android:configChanges="orientation|screenSize"
    android:exported="false"
    android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity
    android:name="com.xiaomi.gamecenter.alipay.HyAlipayActivity"
    android:configChanges="orientation|screenSize"
    android:exported="false"
    android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity
    android:name="com.xiaomi.account.openauth.AuthorizeActivity"
    android:configChanges="orientation|screenSize"
    android:exported="false"
    android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity
    android:name="com.xiaomi.gamecenter.wxwap.HyWxWappayActivity"
    android:configChanges="orientation|screenSize"
    android:exported="false"
    android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity
    android:name="com.alipay.sdk.app.H5PayActivity"
    android:configChanges="orientation|keyboardHidden|navigation|screenSize"
    android:exported="false"
    android:screenOrientation="behind"
    android:windowSoftInputMode="adjustResize|stateHidden" />
    <!-- Xiaomi SDK Need End -->
    </application>

    </manifest>
     
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We've removed the button in recent releases. You're in China? Do you want to publish to Google Play or Xiaomi?
     
  8. gferrari

    gferrari

    Joined:
    Jan 14, 2015
    Posts:
    135
    Yes i'm in China and I have my app in Google Play. I have a warning about this issue, but I'm indie developer and I work from here right now.

    We need that button haha! :O I hope I can fix it with this edit
     
  9. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I'm checking here. Make sure you back up your project before making edits.
     
    gferrari likes this.
  10. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    Does xiaomi allow donation buttons within the app?
     
  11. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You would need to ask Xiaomi
     
    TLummen likes this.
  12. rizwanbabar693

    rizwanbabar693

    Joined:
    Jul 15, 2016
    Posts:
    17

    Im getting this and I haven't added Xiaomi. Unity version is 2017.4. Any fix?
     
  13. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  14. notrashx

    notrashx

    Joined:
    Mar 22, 2020
    Posts:
    2
    How can I do it if i'm not in China?
     
  15. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  16. valium1234

    valium1234

    Joined:
    Jun 10, 2021
    Posts:
    1
    How do we remove it if are using the latest 2022.3.5 LTS?