【发布时间】:2013-05-04 11:39:34
【问题描述】:
在 Android 的 GCM 示例中,示例 GCMIntentService 建议覆盖以下方法:
onError(Context context, String errorId):设备尝试时调用 注册或注销,但 GCM 返回错误。通常,有 除了评估错误(由返回 errorId) 并尝试解决问题。
我的问题是,这个错误 ID 是从哪里来的?例如,如何确定错误是否发生在注册和注销时?
GCMBaseIntentService 也没有多大帮助,指定 errorId - error id returned by the GCM service.
【问题讨论】:
标签: android error-handling push-notification google-cloud-messaging