For the last couple of days, I have been struggling with integrating Urban Airship with my Android application. I have signed up to C2DM and received the invitation e-mail.
I have added the Urban Airship library to my application and configured the airshipconfig.properties
file with the correct app keys, app secrets and the auth token I have set the platform to c2dm
. I have also added the necessary permissions and receivers to the manifest.
不过,我还是有以下错误。
在控制台打印的APID没有登记在城市航空公司的申请书中,在试图从乌班航空公司向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
控制台的产出更多,但似乎与城市航空没有关系。