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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With