Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 200
achukrishnan Avatar asked Mar 21 '12 09:03

achukrishnan


People also ask

Do push notifications work when app is closed iOS?

Apple does not offer a way to handle a notification that arrives when your app is closed (i.e. when the user has fully quit the application or the OS had decided to kill it while it is in the background). If this happens, the only way to handle the notification is to wait until it is opened by the user.

How are push notifications delivered to iOS or Android devices?

Before iOS users receive your messages, you'll need a p. 12 certificate from Apple, which authorizes push sending through APNS. When a user launches your app, the system forms an IP connection between the app and APNS. Push notifications are sent from the APN servers to subscribers after users opt in.

How does push notifications work on the iOS platform?

An iOS push notification is a message that pops up on an Apple device such as an iPhone. Before receiving push notifications from an app, iOS device users must explicitly give permission. Once a user opts-in, mobile app publishers can send push notifications to the users' mobile devices.

Do Androids have push notifications?

Android Push Notifications For Android, the notifications by default appear on the lock screen, and when the phone is unlocked, are visible as small icons on the notification bar at the top of the screen.


1 Answers

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.

like image 188
Abhi Avatar answered Sep 23 '22 02:09

Abhi