![](/img/trans.png)
[英]Push Notifications using Urban Airship returns apID as null at the first launch
[英]Urban Airship - Push Sample => APID is everytime null
我是Android的新手,想要使用UrbanAirship
的推送服務。
我將示例項目下載並測試了Push Sample Project,我剛剛更改了MyApplication.java
的developmentAppKey
和developmentAppSecret
。 應用程序啟動正常並運行而不會崩潰,但要發送推送消息,我需要注冊一個APID,我不知道如何。
此外,我得到以下日志,我認為APID不應為null:
04-22 10:17:50.716: I/Push Sample - UALib(2843): My Application onCreate - App APID: null
我收到此錯誤:
04-22 11:58:49.763: E/Push Sample - UALib(916): com.google.android.c2dm.permission.RECEIVE is unknown to PackageManager. Note that an AVD emulator may not support GCM.
我發現有人遇到同樣的問題,但他沒有得到有用的答案: https : //support.urbanairship.com/customer/portal/questions/59269-android-pushsample-null-apid-missing-permission-that -is-真的,那里-
有人可以幫我嗎?
我也遇到過類似的問題。 您應該仔細檢查您的Google帳戶數據。 我使用的是舊密碼,實際上並不是最新的密碼。 設置新PW后,它對我來說非常有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.