push notifications on all 3 platforms (android,ios,windows phone) [closed]

走远了吗. 提交于 2019-12-18 10:48:24

问题


I'm planning a cross-platform app. Is it possible to implement push notifications on all 3 of them (iphone, android, windowsphone) using only one API/module? Is there any other alternative? What needs to be done server-side? Please point me in the right direction. (Documentation, example code if exists) Thanks in advance.


回答1:


In Android push notification is handled by Google c2dm servers and same for iphone(Apple Servers) and Windows(MPNS). You have to register your app to all three services separately to enable push notification in your app. So while registering user you should send the the information which phone user is currently using to your server and save it in user table and then you have to call remote methods to appropriate servers for sending push notification to particular user.




回答2:


Also, take a look at this github projects:

  • PushSharp: It was made in C#, but seems to be solid.

  • pushd: It was made using Javascript (actually coffeescript), and requires Node.js.

Both of them supports Andoird, Windows Phone and iOS. I haven't tested them, so I can't give you more insights.




回答3:


Take a look at pushwoosh

They provide push services for almost all mobile platforms, including Android, iOS, Windows Phone, Blackberry, Nokia and others. Easy to use and modify.




回答4:


There's also Urban Airship, who seems to be leading the space at the moment. What are your requirements? They offer 1,000,000 free push messages per month.

Unwired Nation and RhoMobile also have solutions if your product is more B2B focused. RhoMobile has a Ruby SDK and Unwired offers an XML API with basic user registration. Unwired Nation's package also includes a basic 2way messaging UI for iOS, Android, and Windows Phone.

@Raspu BTW, thanks for pointing out pushd, looks cool!

  • Disclaimer: I built the Push-Composer equivalent for the Unwired Nation solution.


来源:https://stackoverflow.com/questions/9801720/push-notifications-on-all-3-platforms-android-ios-windows-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!