Welcome to the Troubleshooting Guide¶
We collected the most common issues and questions developers faced with.
If you don’t find the anwer for your question here, contact us at support@getsocial.im or via Intercom.
iOS¶
Question: I am setting im.getsocial.sdk.AutoRegisterForPush = NO
in plist. But when I build the project, it automatically turns it to YES
. How to disable it?
Answer: Most likely you’re using our iOS installer script to integrate GetSocial. If that’s the case you have to configure push notifications via script parameters, see more details here.
Question: I see this exception on the application start:
'NSInvalidArgumentException', reason: '-[FIRA_AppDelegate-1525737441942 toGetSocialNotification:]: unrecognized selector sent to instance 0x1c0035060'
Answer: Just add FirebaseAppDelegateProxyEnabled
entry of type Boolean
with value NO
to your Info.plist
and these lines to your AppDelegate.m
:
```objc tab=”Objective-C”
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
[FIRMessaging messaging].APNSToken = deviceToken;
}
```swift tab="Swift"
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
FIRMessaging().apnsToken = deviceToken
}
You can find more info here.
Question I’m using GetSocial SDK version 6.29.2 and my app crashes on older devices running iOS < 12.2.0:
Answer:
1. Check if Always Embed Swift Standard Libraries
is set to Yes
in your project’s Build Settings
1. 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.
Unity¶
Question: I get the following error on Android when trying to run any GetSocial related method:
Exception: No such proxy method: UnityEngine.AndroidJavaRunnableProxy.run()
Answer:
Check the Stripping Level
configuration in Player Settings
, it should be set to Disabled
.
Question: I get an error message saying Error: keytool command line utility does not exist
.
Answer: Update your GetSocial SDK version to the latest version, or you can get Signing-certificate fingerprint
using keytool
, as it is described here.
Question: When I try to update GetSocial SDK, I get an error on Windows message saying System.UnauthorizedAccessException: Access to the path
"<PATH>Assets\GetSocial\Plugins\Android\getsocial-library-release.*" is denied.
.
Answer: Delete folder at <PATH>Assets\GetSocial\Plugins\Android
manually and download Android libraries in GetSocial → Edit Settings → Android Settings section.