简体   繁体   English

android如何在城市飞艇中注册api?

[英]how to register apid in urban airship for android?

I have completed client side code by download sample from git for push notification in android.我已经通过从 git 下载示例完成了客户端代码,用于 android 中的推送通知。 After execute of app i got app-key and apid from server.执行应用程序后,我从服务器获得了应用程序密钥和 api。 But when i opening the my account in Urban Airship,i found following data that said my app has not registered any application.但是当我在 Urban Airship 中打开我的帐户时,我发现以下数据表明我的应用程序没有注册任何应用程序。在此处输入图像描述

What to do now?Any help will be appreciated现在该怎么办?任何帮助将不胜感激

Urban airship is on maintenance mode.If u try to get apid from there,u will not get any response.城市飞艇处于维护模式。如果您尝试从那里获取 apid,您将不会得到任何响应。 Another way of push notification in android is use C2DM. android 中的另一种推送通知方式是使用 C2DM。 Try google C2DM may u get result.试试 google C2DM 你可能会得到结果。

According to Uarban Airship, you need to add the Reciever class根据Uarban Airship,您需要添加接收器class

android:name=".SampleApplication" 

to your给你的

<application>

in the manifest to get your app to listen for broadcasts.在清单中让您的应用程序收听广播。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM