XMPP Push Notification for iOS chat app - objective-c

I'm creating Google talk client for iOS. I have BOSH server (used node-xmpp-bosh) and iOS client (used xmppframework). The iOS client connect through this BOSH server.
Now, how can I made a push notification to client (possibly from Bosh server) whenever there is incoming chat message or friend request?
Thanks!

node-xmpp-bosh actually provides for exactly this sort of use-case. The BOSH server is an instance of an eventpipe that lets you pipe events to/from the BOSH server to your custom modules/plugins. This is where you can code up the logic for the push notification service.
The advantage of doing this on the BOSH server is that you can support every XMPP service and not just the one that you control the XMPP server for. i.e. You can provide this functionality for google talk, facebook, jabber.org, etc...
Disclosure: I'm one of the authors of node-xmpp-bosh.

To support Push notification you need a special change on the server. We have developed that module for ejabberd (this is something you can see in TextOne and OneTeam).
The details to implement push notification yourself is available on:
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html

Related

Support for browser Push API from notification hubs

I’ve looked in multiple places, but cannot find details of how to register a web site against a notification hub for the sending and receiving of push messages.
The only like examples I have seen use a custom Node.js server for the web site to interact with.
Would really prefer to use a hub so we can send tagged messages to our browser app at the same time as our native apps.
It sounds like you want to register a web application to Azure Notification Hub to receive notification message. A web application can be as backend to send notification message using SDK in different languages like .NET, Node.js, Java, PHP, and Python. But the answer to receive notification message from web is absolutely not, there is an answer of the exising SO thread Can we register a webapplication to recieve notification from azure notification hub which has answered it.
Azure Notification Hubs are exclusively for push notifications for mobile platforms.
Only one exception is Google Cloud Messaging (GCM) supports Chrome Apps, please see the tutorial Tutorial: Push notifications to Chrome apps with Azure Notification Hubs
For sending and receiving Push Notification in browser, the only way is using Web Push API, you can refer to my answer of this SO thread Azure browser push notification for chrome, firefox ,and safari browser. And there is a Mozilla cookbook site for Web Push to show some examples to help getting started. Then, you can host your web push server on Azure. These Mozilla examples' backend are all using JavaScript based on Node.js, you can get the other web push libraries at this GitHub org web-push-libs if you want to use other languages.

Subscribing Tags in Google Cloud messaging

I'm working with Windows Azure Notification Hub and Android, testing the notifications push service through GCM. I'm using tags, pushing notifications from a Web application (back-end) integrated with Windows Azure.
The issue is: I don't know how to subscribe from an Android App to listen to those tags.
Create a Custom API with Azure Mobile Apps Server SDK. This should take the device registration Id and then do the registration with Notification Hubs. Azure Mobile Apps Server SDK wraps the Notification Hubs SDK for this purpose.
In your client, you can follow the appropriate Client SDK tutorial on push (Android is here), but use InvokeApi to invoke your custom API to do the registration instead of calling client.getPush().register().
Another good reference is the Android Client HOWTO Docs.

iOS7 Text chat application with background MultiTasking and without APNS

I wish to make chat application that will use background service that will persistently query certain server of clients choice.
This app is chat application.
I am developer of iOS application but I do not own/control these servers.
I can't share my APNS certificate with 3rd parties that control these servers.
So the only way I see to implement it on iOS is to use MultiTasking API and NSURLSession class.
Is it permitted create chat applications that will not use APNS but will use MultiTasking API?
take a look at https://github.com/robbiehanson/XMPPFramework. Just declare your app as a voip.

Using push notifications service along with WCF for windows store application

I'd like to build an app based on WCF service and Win8 as presentation layer. I will have messaging capabilities in the app so any user must see updates on the tile (when new messages arrive). As I understand I need to use "Push notifications service" mechanism somehow to update all client s tiles with new arrived messages? How would app work? It should call directly to WCF service and then WCF service should call to push notifications service, or firstly Win8 calls to notification service which calls to WCF? Can somebody clarify me how all this stuff can communicate with each other? Perhaps I should think about WCF Duplex approach? Is it possible to make WCF service to be Push notification service as well?
You can use the
The Windows Push Notification Services (WNS). Your app requests a notification channel. Then it will call the WCF service to send it that channel. The WCF service will send a POST request to the notification channel (which is a URI) in order to notify the app. The data of the request is in XML format (you can read about it in the link).
The Windows Push Notification Services (WNS) enables third-party
developers to send toast, tile, badge, and raw updates from their own
cloud service. This provides a mechanism to deliver new updates to
your users in a power-efficient and dependable way.
It involves these steps:
- Your app sends a request for a push notification channel to the Notification
Client Platform.
- The Notification Client Platform asks WNS to create a notification channel.
This channel is returned to the calling device in the form of a Uniform
Resource Identifier (URI).
- The notification channel URI is returned by Windows to your app.
- Your app sends the URI to your own cloud service. This callback mechanism is
an interface between your own app and your own service. It is your
responsibility to implement this callback with safe and secure web standards.
- When your cloud service has an update to send, it notifies WNS using the
channel URI. This is done by issuing an HTTP POST request, including the
notification payload, over Secure Sockets Layer (SSL). This step requires
authentication.
- WNS receives the request and routes the notification to the appropriate
device.

Adobe Flex (Mobile): How server can notify client when some event get fired in server

How to implement push notification (like Facebook notification) in Adobe Flex for mobile application.
I'm currently try to find out how the server can notify the client when some event get fired in the server. I'm building WCF Service for communication between server and client.
Anyone can suggest or provide me any guidance?
Thanks.