Gamelift credential problem on mobile?

Hi there. We’re working on a Unity GameLift game. It works fine on OSX, windows, and in the editor.

However when making iOS and android builds, we get a credentials error.

Here’s an example stacktrace:

  ConfigurationErrorsException: Type ‘System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=<token>’ not found.
at System.Configuration.InternalConfigurationHost.IsDefinitionAllowed (System.String configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigInfo.CreateInstance () [0x00000] in <filename unknown>:0
at System.Configuration.SectionInfo.CreateInstance () [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSectionInstance (System.Configuration.SectionInfo config, Boolean createDefaultInstance) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <filename unknown>:0
at Amazon.AWSConfigs.GetConfig (System.String name) [0x00000] in <filename unknown>:0
at Amazon.AWSConfigs..cctor () [0x00000] in <filename unknown>:0

Here’s our code:


Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.Console;
Credentials credentials = new Credentials (); credentials.AccessKeyId = "key";
credentials.SecretAccessKey = "secret";
AmazonGameLiftConfig config = new AmazonGameLiftConfig ();
config.RegionEndpoint = Amazon.RegionEndpoint.USWest2;
_gameLiftClient = new AmazonGameLiftClient (credentials, config);

I am quite baffled here by its ability to work in other environments, but fail hard on mobile. Do we have to use cognito? In Cognito, then, should we just have one user? The user we use just has access to join playersessions.

Thanks.

Hey @JSeligstein - sorry for the troubles. Let me see if I can get some answers on this :slight_smile:

Hey @Amonster_LMBR, no responses here! Any update?

Hey @JSeligstein - my apologies for the delays on answers. I’ve pinged the team for the update. Stay tuned!

Hey @JSeligstein - are you still having issues? I know this topic has not had a response to, and while I’m disappointed about this experience for you, I would still, very much like to help find the appropriate answer on this topic. Please let me know if this trouble persists. Again, I’m very sorry for this experience

I’m having this issue as well, Unity 2020.1, trying to access Cognito from iOS build. Getting ConfigurationManager giving me a NotSupportedException