English 中文(简体)
向城市航空公司登记C2DM
原标题:Registering C2DM with Urban Airship

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

控制台的产出更多,但似乎与城市航空没有关系。

最佳回答

它不会注册, 因为我与 Google Play 没有连接。 打开 Google Play 应用程序时, 我发现错误 : < code> 没有连接

我犯了这个错误,因为我手机上的日期和时间没有正确设定。 设定日期和时间意味着我可以建立与 Google Play 的连接, 从而接收推键通知 。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签