开发者

How can I target push notifications to both iPhone and Android?

I am developing apps for both Android and iPhone, and am look开发者_JS百科ing for how I can push notifications to both (if you only have an answer for one, that's ok, I'm sure someone has an answer for the other).

For example, if I'm having a special on something and want to notify people so it sort of dings and a message pops up (I have a Groupon app that does that) how can I accomplish this? And do I have to reprogram each time, or can I do it through an RSS or something else?


For Android 2.2+ use C2DM. Apple also has a proprietary push notification service. In both cases you need to register with the company to use the system. Also in both cases you will need a web server able to communicate to Google and Apple.


If you don't want to have to support an entire server framework for communicating with both iOS and Android devices, take a look at UrbanAirship. It's a dirt-cheap service that allows you to push both plain- and rich- text messages to iOS, Android, and BlackBerry.

Gravy: It also has mechanisms for In-App Purchasing, and statistics tracking.


Maybe PushOver can be a solution https://pushover.net/ but there is probably other web services like that !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜