【发布时间】:2017-05-17 13:16:04
【问题描述】:
当现有应用程序尝试发送 notifications 时,我突然在下方收到此错误。它尚未升级到 Firebase,正在处理中。 Google 是否关闭了发送GCM notifications 的功能?
{"ClassName":"PushSharp.Android.GcmMessageTransportException","Message":"内部 服务 错误","数据":null,"InnerException":null,"HelpURL":null,"StackTraceString":" 在 PushSharp.Android.GcmPushChannel.processResponseError(GcmAsyncParameters asyncParam)\r\n 在 PushSharp.Android.GcmPushChannel.responseCallback(IAsyncResult 结果)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nprocessResponseError\nPushSharp.Android, 版本=2.0.4.0,文化=中性, PublicKeyToken=cf74b75eab2c0170\nPushSharp.Android.GcmPushChannel\nVoid processResponseError(GcmAsyncParameters)","HResult":-2146233088,"Source":"PushSharp.Android","WatsonBuckets":null}
OnNotificationFailed 在 Exception 中返回以下内容:
PushSharp.Android.GcmMessageTransportException: Internal Service Error
at PushSharp.Android.GcmPushChannel.processResponseError(GcmAsyncParameters asyncParam)
at PushSharp.Android.GcmPushChannel.responseCallback(IAsyncResult result)
【问题讨论】:
-
AFAIK,如果您遇到here 中提到的内部服务错误,您可以重试发送您的请求。您可能需要查看此GitHub post 以获取更多信息和示例用法。如果您打算升级到 Firebase,这个thread 可能会派上用场。
标签: android google-cloud-messaging pushsharp