Skip to content

Welcome to the Troubleshooting Guide

We collected the most common issues and questions developers faced with.
If you don’t find the answer for your question here, contact us at support@getsocial.im or via Intercom.

Generic

I see the following image when opening the Invites UI:

Invites View Issue

Make sure SDK is initialized when you open the Invites UI. If you want to open it immediately as the app starts, put the Invite UI opening code into GetSocial.addOnInitializedListener callback.

Android

Add android:launchMode="singleTask" to your main activity in AndroidManifest.xml.

I see this error in logs and don’t receive any Push Notifications: Failed to obtain push token.

Please check the configuration steps here
If the issue still persist, please add the following dependency to your app’s build.gradle file:

implementation 'com.google.firebase:firebase-iid:+'

I want to add GetSocial to a module and not directly to the app

Follow this steps to configure your project.
If you use plain Gradle scripts:

  1. Add these lines to the end of your app’s build.gradle file:

    evaluationDependsOn(':app:<module_with_gs>')
    

  2. Add GetSocial configuration to your module’s build.gradle file:

    android {
        defaultConfig {
            manifestPlaceholders["getsocial_scheme"] = <APP_ID> // example: LK8A9cA0o07
            manifestPlaceholders["getsocial_hostName_0"] = <APP_INVITES_DOMAIN> // example: getsocialdemo.gsc.im
            manifestPlaceholders["getsocial_hostName_1"] = <APP_INVITES_DOMAIN_2> // example: getsocialdemo-gsalt.gsc.im
        }
    }
    

  3. Add these lines to the end of your module’s build.gradle file:

    afterEvaluate {
        project(':app').android.defaultConfig.manifestPlaceholders += android.defaultConfig.manifestPlaceholders
    }
    

In case you use KTS scripts:

  1. Add these lines to the end of your app’s build.gradle.kts file:

    project.evaluationDependsOn(':app:<module_with_gs>')
    

  2. Add GetSocial configuration to your module’s build.gradle.kts file:

    android {
        defaultConfig {
            manifestPlaceholders["getsocial_scheme"] = <APP_ID> // example: LK8A9cA0o07
            manifestPlaceholders["getsocial_hostName_0"] = <APP_INVITES_DOMAIN> // example: getsocialdemo.gsc.im
            manifestPlaceholders["getsocial_hostName_1"] = <APP_INVITES_DOMAIN_2> // example: getsocialdemo-gsalt.gsc.im
        }
    }
    

  3. Add these lines to the end of your module’s build.gradle.kts file:

    tasks {
        afterEvaluate {
            val appextension = project(":app").extensions.get("android")
            addPlaceholders(appextension as com.android.build.gradle.AppExtension, android.defaultConfig.manifestPlaceholders)
        }
    }
    
    fun addPlaceholders(app: com.android.build.gradle.AppExtension, placeholders: MutableMap<String, Any>) {
        app.defaultConfig.manifestPlaceholders.putAll(placeholders)
    }
    

iOS

‘NSInvalidArgumentException’ exception on the application start

'NSInvalidArgumentException', reason: '-[FIRA_AppDelegate-1525737441942 toGetSocialNotification:]: unrecognized selector sent to instance 0x1c0035060'

Add FirebaseAppDelegateProxyEnabled entry of type Boolean with value NO to your Info.plist and these lines to your AppDelegate.m:

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    FIRMessaging().apnsToken = deviceToken
}

You can find more info here.

I’m using GetSocial SDK and my app crashes on older devices running iOS < 12.2.0

  1. Check if Always Embed Swift Standard Libraries is set to Yes in your project’s Build Settings
  2. If you use CocoaPods, make sure use_frameworks! flag is added to your Podfile. If you need to add it, run pod install and make a clean build.

My app was working fine but now I see Invalid SDK Version error

Invalid SDK Version, check that your building tools didn't modify GetSocial SDK files

When you build your app, the version of GetSocial SDK is overwritten by some tool, like AppCenter and Xcode 13. Please note this issue happens only when using SDK version < 7.4.7 or 6.x.x.
Solution:

  1. AppCenter: Disable automatic version increment setting.
  2. Xcode 13: Uncheck Manage Version and Build Number setting when submitting your app to the AppStore.

Unity

Exception: No such proxy method: UnityEngine.AndroidJavaRunnableProxy.run()

Check the Stripping Level configuration in Player Settings, it should be set to Disabled.

I get an error message saying Error: keytool command line utility does not exist

Update your GetSocial SDK version to the latest version, or you can get Signing-certificate fingerprint using keytool, as it is described here.

When I try to update GetSocial SDK, I get an error on Windows message saying System.UnauthorizedAccessException: Access to the pathAssets\GetSocial\Plugins\Android\getsocial-library-release.*” is denied.`.

Delete folder at <PATH>Assets\GetSocial\Plugins\Android manually and download Android libraries in GetSocialEdit SettingsAndroid Settings section.

I get an error message saying: java.lang.RuntimeException: Duplicate class com.android.installreferrer.BuildConfig found in modules classes.jar (:com.android.installreferrer.installreferrer-1.0:) and classes.jar (com.android.installreferrer:installreferrer:1.1)

  1. Delete Assets/GetSocial/Plugins/Android/GooglePlayInstallReferrer library
  2. Add systemProp.im.getsocial.plugin.excludeInstallReferrer=true to your gradle.properties file
  3. In Unity Editor go to Player Settings -> Android -> Publishing Settings:
    • Enable Custom Gradle Properties Template.
    • Open Assets/Plugins/Android/gradleTemplate.properties file
    • Add systemProp.im.getsocial.plugin.excludeInstallReferrer=true line

Give us your feedback! Was this article helpful?

😀 🙁