在过去的几天里,我一直在努力将 Urban Airship 与我的 Android 应用程序集成。我已经注册了 C2DM 并收到了邀请电子邮件。我已将 Urban Airship 库添加到我的应用程序中,并airshipconfig.properties
使用正确的应用程序密钥、应用程序机密和我已将平台设置为c2dm
. 我还在清单中添加了必要的权限和接收者。
不过,我收到以下错误。
控制台中打印的 APID 未在 Urban Airship 上的应用程序中注册,当尝试从 URban Airship 向 APID 发送推送通知时,我会收到一条错误消息,提示他们不知道 APID。
谁能引导我朝着正确的方向前进,因为我现在真的一无所知?
01-10 19:49:27.195: D/Nibe Festival - UALib(1124): Airship Take Off! Lib Version: 1.1.3 / App key = **hidden** / secret = **hidden**
01-10 19:49:27.195: D/Nibe Festival - UALib(1124): In Production? false
01-10 19:49:27.295: D/Nibe Festival - UALib(1124): Initializing Push.
01-10 19:49:27.304: D/Nibe Festival - UALib(1124): Initializing Analytics.
01-10 19:49:27.324: I/Nibe Festival - UALib(1124): My Application onCreate - App APID: **hidden**-**hidden**-**hidden**-**hidden**-**hidden**
01-10 19:49:27.794: D/Nibe Festival - UALib(1124): Push Service started with intent=Intent { act=com.urbanairship.push.START cmp=com.codeinacup.NibeFestival/com.urbanairship.push.PushService }
01-10 19:49:27.814: D/Nibe Festival - UALib(1124): Starting C2DM
01-10 19:49:27.814: I/Nibe Festival - UALib(1124): Initializing C2DM Push...
01-10 19:49:27.834: I/Nibe Festival - UALib(1124): Performing BoxOffice firstRun.
01-10 19:49:28.194: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
01-10 19:49:28.194: E/Nibe Festival - UALib(1124): Firstrun failed, will retry. Error: Failed to post to /firstrun; request failed
01-10 19:49:38.204: I/Nibe Festival - UALib(1124): Performing BoxOffice firstRun.
01-10 19:49:38.394: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
01-10 19:49:38.394: E/Nibe Festival - UALib(1124): Firstrun failed, will retry. Error: Failed to post to /firstrun; request failed
01-10 19:49:57.794: I/Nibe Festival - UALib(1124): Sending 15 events.
01-10 19:49:57.854: D/Nibe Festival - UALib(1124): Sending Analytics to: https://combine.urbanairship.com/warp9/
01-10 19:49:58.054: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
01-10 19:49:58.404: I/Nibe Festival - UALib(1124): Performing BoxOffice firstRun.
01-10 19:49:58.594: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
01-10 19:49:58.594: E/Nibe Festival - UALib(1124): Firstrun failed, will retry. Error: Failed to post to /firstrun; request failed
01-10 19:50:38.594: I/Nibe Festival - UALib(1124): Performing BoxOffice firstRun.
01-10 19:50:38.774: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
01-10 19:50:38.774: E/Nibe Festival - UALib(1124): Firstrun failed, will retry. Error: Failed to post to /firstrun; request failed
01-10 19:50:57.814: I/Nibe Festival - UALib(1124): Sending 15 events.
01-10 19:50:57.854: D/Nibe Festival - UALib(1124): Sending Analytics to: https://combine.urbanairship.com/warp9/
01-10 19:50:58.014: D/Nibe Festival - UALib(1124): Error when executing request: Not trusted server certificate
控制台中有更多输出,但似乎与 Urban Airship 无关。