Skip to content

SDK Issues

A collection of FAQs about using the Hive SDK.

Execution errors

How to install both Google Play builds and Onestore builds

If your game doesn't use the file sharing features of the Facebook SDK, you can work around this by removing the following from your AndroidManifest.xml file

<provider android:authorities="com.facebook.app.FacebookContentProvider{APP_ID}"
android:name="com.facebook.FacebookContentProvider"
android:exported="true"/>
Why is Firebase Analytics disabled when I applied the Hive SDK?

If you have applied Firebase Analytics to your game with the Hive SDK, but events are not being collected, please check the following.

  1. Change the metadata in the AndroidManifest.xml file

    <application>
    <meta-data android:name="firebase_analytics_collection_deactivated" tools:node="remove" />
    <meta-data android:name="firebase_analytics_collection_enabled" android:value="false" />
    

  2. Enable Firebase Analytics after Hive SDK initialization is complete

    // Hive SDK v4 Initialize
    AuthV4.setup (delegate (
    ResultAPI result, Boolean isAutoSignIn, String did, List providerTypeList) {
        if (result.code == ResultAPI.Code.Success) {
            // Initialize Success
            if (Configuration.getAgeGateU13() == false) {
            // Enable Firebase Analytics collection if you are 13 or older
            setAnalyticsCollectionEnabled(true);
            }
            else {
            // Disable Firebase Analytics collection if you are under 13 years old
            setAnalyticsCollectionEnabled(false);
            }
        }
    });
    

If not receiving iOS pushes

If you are not receiving pushes on your iOS build, please check the following.

  1. Verify that the push certificate is properly enrolled and that the push certificate has not expired
  2. Verify that the APNS server environment matches the registered push certificate and the token used in the actual build

    • Hive Push commercial servers request a push to an APNS Real server and Hive Sandbox servers request a push to an APNS Sandbox server.
    • If the build you're testing is an Enterprise or Ad-hoc build, you'll receive a push token available on the APNS Real server, and if it's a Development build, you'll receive a push token available on the APNS Sandbox server.
  3. Check push notification XCode settings


Warning

Notes on building Huawei on Android with Hive SDK v4 Unity 24.3.0, 24.4.0

Follow this guide for building Huawei on Android with Hive SDK v4 Unity 24.3.0, 24.4.0
(Failure to follow the guide will result in errors when purchasing Huawei IAP products)

Guide

Modify AndroidPostBuildProcessor.cs In your Unity project, go to /Assets/Hive_SDK_v4/Editor/Android/AndroidPostBuildProcessor.cs in your Unity project and make the following changes to apply

  1. Add code
    // Add
    using Hive.Unity.Editor;
    
  2. Add code after removing existing code
    // Remove
    string huaweiDependenciesXml = Application.dataPath + "/Hive_SDK_v4/Editor/HIVESDK_ProviderHuaweiDependencies.xml";
    if (File.Exists(huaweiDependenciesXml)) {
    // Add
    bool useHuawei = ExternalDependencyDictionaryManager.isUseDependency(ExternalDependencyType.Huawei);
    if (useHuawei) {
    
  3. Add code after removing existing code
    // Remove
    string huaweiDependenciesXml = Application.dataPath + "/Hive_SDK_v4/Editor/HIVESDK_ProviderHuaweiDependencies.xml";
    if (File.Exists(huaweiDependenciesXml)) {
    // Add
    bool useHuawei = ExternalDependencyDictionaryManager.isUseDependency(ExternalDependencyType.Huawei);
    if (useHuawei) {
    
Notes on using Firebase analytics on Android with Hive SDK v4 Unity 24.3.0, 24.4.0

If you are using Firebase Analytics on Android with Hive SDK v4 Unity 24.3.0, 24.4.0, please follow these guides (Failure to follow these guide will prevent you from sending Firebase Analytics events)

Guide

  1. Generate launcherTemplate.gradle Project Settings > Player > Publishing Settings > Check Custom Launcher Gradle Template in the Build section
  2. Apply plugin
    Inside the generated Assets/Plugins/Android/launcherTemplate.gradle file, add the code below to the bottom of the file
    apply plugin: 'com.google.gms.google-services'
    


Note

SDK upgrade through SDK Manager consistently fails
  1. If the Hive SDK you received is not a publicly distributed version, but an individually delivered Hive SDK, you will get an upgrade error. Because Hive SDK Manager checks the version with the Hive SDK binary, it is not possible to upgrade an unregistered version. In this case, please contact SolutionArchitect.

  2. If you have changed any part of the Hive SDK source files, the upgrade will fail. Hive > Hive SDK Manager > Click Restore Hive SDK to restore the original and then try to upgrade.

How Onestore builds differ from Google builds

Basically, you can set it up the same as you would for Google Build.

Inside the Hive SDK, the payment behavior is determined by the appid set in hive_config.xml, so you only need to set the appid value to the appid for Onestore.

If there is any other key information that needs to be set between Onestore/Google, you can set it differently.

SDK Guide > Basic configuration > Configuration file > Overview