Skip to content

Android

Market-specific settings are required for using various features such as authentication, payment, and notifications for specific markets like Amazon, Huawei, and ONEstore.

Info

For more information on markets that support payments, please refer to here.
For more information on markets that support authentication, please refer to here.

Google Play Games on PC

If you are supporting Google Play Games on PC, Google's PC environment emulator platform, please check the settings below.

Required library settings in build.gradle

Apply hive-authv4-provider-google-playgames. hive-authv4-provider-google-playgames includes the play-service-games-v2 library.

 (skipped) 
// Required for building Play Games on PC
implementation "com.com2us.android.hive:hive-authv4-provider-google-playgames"

 (skipped) 

AndroidManifest.xml settings

Settings for Google Play Services. This is the value required for Google Play Games login settings.

<manifest>
    <application>
    <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/game_services_project_id"/>
    </application>
</manifest>

hive_config.xml settings

Set playAppId and serverClientId in the <google> tag within the <providers> tag in hive_config.xml.

Removing unused Android permissions

android.hardware.wifi.feature is not supported on Google Play Games on PC. Please remove the following permissions if they are being used in your app.

<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"  />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"  />

Amazon

Common settings for using Amazon payment, push functionality, and uploading your app to the Amazon Appstore.

Amazon billing settings

To receive item information from the Appstore SDK when using Amazon billing, you need to add an encrypted key file to the /assets location. Refer to the Amazon Appstore Guide for information on how to download and add the AppstoreAuthenticationKey.pem key.

Amazon notification settings

To enable Amazon notifications, your app must include a valid API key so that the app can receive messages. Refer to the Amazon Console Guide to generate an API key from the Amazon console and include it as a file named /assets/api_key.txt.