【问题标题】:Amazon Simple Notification for unity is not working统一的亚马逊简单通知不起作用
【发布时间】:2016-11-24 04:38:28
【问题描述】:

我按照以下说明进行操作: http://docs.aws.amazon.com/mobile/sdkforunity/developerguide/sns.html 但是当我在 Unity 上播放示例场景时,出现了这个错误:

XmlException: expected '>' (3E) but found '<' (3C)  Line 3, position 6.
Mono.Xml2.XmlTextReader.Expect (Int32 expected)
Mono.Xml2.XmlTextReader.ReadStartTag ()
Mono.Xml2.XmlTextReader.ReadContent ()
Mono.Xml2.XmlTextReader.Read ()
System.Xml.XmlTextReader.Read ()
Mono.Xml.XmlFilterReader.Read ()
Mono.Xml.XmlFilterReader.Read ()
System.Xml.Linq.XDocument.ReadContent (System.Xml.XmlReader reader, LoadOptions options)
System.Xml.Linq.XDocument.LoadCore (System.Xml.XmlReader reader, LoadOptions options)
System.Xml.Linq.XDocument.Load (System.IO.TextReader reader, LoadOptions options)
System.Xml.Linq.XDocument.Load (System.IO.TextReader reader)
Amazon.AWSConfigs+<>c__DisplayClass89_0.<LoadConfigFromResource>b__0 ()
Amazon.AWSConfigs.LoadConfigFromResource ()
Amazon.AWSConfigs.GetSection[AWSSection] (System.String sectionName)
Amazon.Util.Internal.RootConfig..ctor ()
Amazon.AWSConfigs..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Amazon.AWSConfigs
Amazon.Runtime.Internal.Util.Logger.ConfigureLoggers ()
Amazon.Runtime.Internal.Util.Logger..ctor (System.Type type)
Amazon.Runtime.Internal.Util.Logger.GetLogger (System.Type type)
Amazon.Util.Internal.AmazonHookedPlatformInfo..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Amazon.Util.Internal.AmazonHookedPlatformInfo
Amazon.UnityInitializer.Awake ()
UnityEngine.GameObject:AddComponent()
Amazon.UnityInitializer:AttachToGameObject(GameObject)
AWSSDK.Examples.SNSExample:Start() (at Assets/Examples/SNSExample.cs:66)

我也在设备上进行了测试,但它根本不起作用(在 SNS 控制台上找不到任何应用程序端点)。我在论坛、博客等上看到很多人与我有同样的错误,但似乎没有人找到解决方案。

请帮我解决这个问题,或向我展示如何在 Unity 上使用 Amazon Simple Notification Service 的示例(有效)。

非常感谢!

【问题讨论】:

    标签: ios amazon-web-services unity3d notifications amazon


    【解决方案1】:

    您可以在此处找到使用 Unity 上的 Amazon Simple Notification Service 的示例: https://github.com/awslabs/aws-sdk-unity-samples/tree/master/SNS

    【讨论】:

      猜你喜欢
      • 2017-09-05
      • 1970-01-01
      • 1970-01-01
      • 2017-11-14
      • 2021-09-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-22
      相关资源
      最近更新 更多