【问题标题】:GCM Notifications stopped working with PushSharpGCM 通知停止使用 PushSharp
【发布时间】: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


【解决方案1】:

我们决定忽略这一点,并为 Firebase 完成我们的发布。这似乎是一个间歇性问题。我们只是将其余服务用于 firebase 而不是 PushSharp。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-22
    • 1970-01-01
    • 2012-10-27
    • 2017-03-28
    相关资源
    最近更新 更多