-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Google doesn't like it when Huawei libraries forms part of an app on the Google Play store:
Hi Developers,
After a recent review, we found that your app is not compliant with one or more of our Developer Program Policies. See below for
more information about your app’s status and how to correct the issue.
Issue with your app
Your app contains content that doesn’t comply with the Device and Network Abuse policy. We found your app is using a non-compliant version of Huawei Mobile Services SDK which contains code to download or install applications from unknown sources outside of Google Play. Given the nature of the SDK, please remove it from the version of your app submitted to the Play Store.
About the Device and Network Abuse policy
An app distributed via Google Play may not modify, replace, or update itself using any method other than Google Play's update mechanism. Likewise, an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play. Please note that you are responsible for all aspects of your app; by using an SDK in your app, you are responsible for how that SDK behaves within your app.
Possible solution:
Is there a way you can maybe implement flavors to circumvent this issue?
Then you could use flutter build --flavor googlePlay to build for Google Play and flutter build --flavor huawei for Huawei.
This library does it if you need an example:
https://pub.dev/packages/flutter_appcenter_bundle
For now, I'll have to find a hacky way to get around this.