Notifications patterns in WCF - android

We are planning to develop a client server application. The server component shall be developed as REST based WCF Services. The server component needs to send some notification to clients... The clients can be any of the following
1- WPF based windows apps
2-ASP.NET web application
3-Android or iOS apps
What is the best way of sending notifications
Thanks in advance

You could use SignalR
It was originally built for ASP.net:
http://signalr.net/
But now also Works for Andriod:
http://msopentech.com/blog/2014/03/06/android-java-developers-signalr-sdk/
There is also a possibility to use it With a WPF Client:
http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-net-client

Related

Communication between a web application and an android application

I have a web application built on java and an android application. Both are deployed on different servers. How can i send request from android application to web application? Also, how can i send corresponding response from the web application to android application?
use REST api's (in JSON format).
This can be done with the help of web API's . You have to create webApi's on your server and, You can use AsyncTask in your android application to communicate with those web Api's.

Mbaas for hybrid app (with cordova)

I'm starting a new mobile hybrid application with cordova and i want to use an mbaas to accelerate development process. I need:
Database
Authentication (with social logins)
Push notifications sent from client
Server-side scripting (optional)
I've seen Firebase, but it's a little bit tricky for push notifications (i have to create another server) and also it don't support very well the hybrid applications.
Anyone can help me? Thanks
You can use a mbaas like built.io's backend, I am not sure if they support server side scripting but rest all can be achived.
You can refer to their docs https://docs.built.io/
Refer to this feature list https://www.built.io/products/backend/features

Android real time messaging

i m trying to develop an aap. in android which behaves like a client/server architecture.
my app communicates messages to server to rout to specified clients..
i have heard that this could be accomplished by a REAL TIME MESSAGING client.
i have to pass only text based data. no audio/video streaming
You can read up on XMPP:
http://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol
http://xmpp.org/
There are client apis available for Android, I have personally used asmack:
http://code.google.com/p/asmack/

Android app, open connection to to mobile devices

what is the best way to create a two way constant communication between a server and an android app?
When I say constant communication, I mean client asking server for data or server constantly pushing data to clients.
From what I saw, I can't use websockets since they are designer for server/browser setups. Is that right? If so, what is the alternative?
Is there free frameworks to work with this in Android?
What I am trying to do is an application that works like a chatting but for multiple people. So they all will get in one "room or channel" on their devices, and then interact with each other, in a way handdled by the server.
Thanks!
As far as I know , one possible way is using a web service where the client can connect to the server , if the web service is RESTFul there are many libraries to access it , one of them is the apache HTTPClient , for the server pushing the only way I know is C2DM for pushing data to clients.
For continuously-open data connection, you may use Sockets. But you should also consider the fact that an always-open connection will drain your battery quickly too. For more details, read this and this
You may want to look at AutobahnAndroid:
https://github.com/tavendo/AutobahnAndroid
which provides native Android/Java WebSocket client framework (plus WAMP = PubSub/RPC over WebSocket .. http://wamp.ws).
This is fully interoperable with WebSocket servers that server browser clients.
The AutobahnXX libraries (where XX = Python, JS, Android) are Open-Source (Apache 2.0). We (Tavendo) are offering a commercial virtual appliance based on Autobahn: http://autobahn.ws
Disclaimer: I am author of Autobahn and work for Tavendo.
But keeping the connection running on the background on iOS and Android devices does drain the battery, for people who have this issue, I suggest using push notifications when the app is not on the foreground.
From what I saw, I can't use websockets since they are designer for
server/browser setups. Is that right? If so, what is the alternative?
Websocket is an IETF/W3C protocol, so it is not confined to a specific client platform. You can use Android websocket to get a two-way communication between Android and server side. For Android websocket client, I recommend using AndroidAsync. It has all websocket API that you need to establish the communication link and exchange data between Android and the server.

WCF data push to flash client without RTMP

I am interested in connecting my android, iOS and flash clients to a wcf service and want to push updates to my clients from the WCF service as and when events regarding the client occurs.
From the google searches, i got weborb.net and flourinefx.net. But these are based on rtmp, so i cant manage push for android and iphone clients.
Is there any alternative for pushing data from WCF service to all of my clients?
You might want to take a look at SignalR. From what I've read it seems like it could do the trick.

Categories

Resources