Can I build an IM Service client like GTalk in GAE? - java

i'm developing an app for people with communication disease. The point is that in my app i need that the user uses his gmail account to chat with his friends, like gmail gtalk service with helps to create the message.
I read the XMPP service of GAE but it only permit communication between an user and my app, not between users.
I tried with Smack Api but GAE doesn't suppor it.
I can create a chat with the Channel Service, but if i want to support Instant Messaging between two users is needed that an user make his account and his friends has to do it too to create the IM interface, and has to uses my web interface not a jabber client like Gtalk.
Can is communicate two users with XMPP in GAE, making an IM like GTalk?

What you need is Google Cloud Messaging Service.
The service just introduced last year and they just announced a lot of enhancement during the Google I/O 2013.
It supports messaging from/to browser, android, and IOS.

I suggest that you go with something like OpenFire RTC Server that is based on XMPP standards. This will help get you a XMPP Server running in no time and as suggested, you could look at hosting this on something like EC2.
A related thread : https://serverfault.com/questions/229039/xmpp-server-on-ec2-amazon-web-service-aws

Related

Google Play Inapp Billing v3: what is the purpose of Backend Server?

I have an Android app with inapp subscriptions (with a 7 day free trial period) and I am trying to upgrade it to Google Play Inapp Billing v3 following these instructions:
https://github.com/android/play-billing-samples/tree/master/ClassyTaxiJava
I don't understand what is the purpose of the "Backend Server". What is it for ?
By the way, if you have any link to a detailed tutorial to deploy such a server (Google explanations given here are quite 'light'), I am interested :)
Thanks !
Main purpose of backend server is to act as an interface between mobile app and google play console. All this subscription lifecycle handling is done on server side and also dependig on this life cycle, RTDN are sent from server side to the mobile app. Hope this answers your question.
The` backend server that is mentioned in your link a server that needs that library to work, but it does not mean that to implement in-app subscriptions and purchases in your app you need a backend server nor that github library.

it is possible to send messages from a Java class to Skype for Business distribution group without using client software

it is possible to send messages from a Java class to Skype for Business distribution group without using client software If it is so, then how it is possible.
I am continuously browsing but didn't get any solution yet.
We build such a integration and used the XMPP Gateway (but needs to be configured by the system administrator) which is part from a Skype for Business environment. So what we build here, we setup a XMPP Server, our application is working with the XMPP Server and an XMPP Federation between Skype for Business and the XMPP Server. Might be an overkill for your needs but as you didnĀ“t share much more infos about what you wish to build this might be an possible options ;-).

Spring webapp: sending notifications to java and android clients

I recently started developing my first web application with Spring and I'm stuck with a question I could not really find an answer to. What I have is a simple Spring MVC application running in tomcat which provides data in form of JSON, XML or binary via REST. This service is consumed by two clients I developed, a simple Java desktop application and an Android app. So far the clients only got information about new data by polling.
What I want now, is a way for the server to send notifications/messages to the clients when new data is available. For the Android client it would be good if the notifications could received anytime, not only when the app is currently open of course. I found lots of information for JavaScript client code but very little really useful, up-to date input about what the options for java and android clients are.
It would be really great if someone could give me some idea what would be the best way to achieve what I want (ideally something which integrates well with Spring on the server side), what protocols/libraries/frameworks to use, maybe even point me to some example or tutorial, how to implement this on server and client side.
Thanks in advance for any input.
For android or mobile devices, Google Cloud Messaging is the preferred way of sending messages to applications running on devices.
Example : spring gcm server side project and a sample tutorial.
For desktop apps, either poll regularly the server or run something in background like crontab or active-mq to check the messages and start the desktop app.
WebSockets are the best solution. check the implementation in java in the server side

sendgrid implementation without billing account in Google App Engine web project?

I am using sendgrid APIs to send bulk emails.We have cloud application in android and web using google app engine.As we know google app engine has limited quota.So we supposed to use FREE i.e.12k/month to send emails.We have integrated it properly.If I run the code at local side i.e. localhost:888, it works but if I deploy the code and try it from there then I am getting below exception.I have created an account on sendgrid already and verified as well.
com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The
Socket API will be enabled for this application once billing has been
enabled in the admin console
Is it really needed to have billing account?
You can use sendgrids web api which does not require the Socket API in App Engine.
If you want to use sendgrid's SMTP API you will have to enable billing. I would recommend using the web api though.
They have an example i successfully use in one of my projects.

Web server/db online to communicate with android?

I'm new in android and i want to know if there is some server / web service online that o can use to update and communicate with my app?
example: I have the app "message" in 5 phones so I want to communicate with all of them, if the phone 1 send a message all device must receive notification.
There is something that I can use maybe free?
You have many options to accomplish this goal, and most provide some free level of support.
In general if you want to "push" notifications to android devices, you can either directly use or use some provider that uses Google Cloud Messaging.
Using this approach directly means you need some web server to send request to, which will then forward a request to Google, which will then forward your "message" to the devices you want to reach. There are many options for free hosting of (smallish) web services. IBM's BlueMix and Heroku come to mind. So if your are comfortable writing web apps, this might be a good choice. I have used both (for Ruby on Rails backends to mobile apps) and found both very good, but am currently using Bluemix.
I believe Bluemix along with Parse also offer mobile data storage and easy access to Push notifications to both Android and iOS. I am currently using Bluemix via Ruby on Rails and pushing messages directly to devices via GCM and don't have much experience with those particular offerings.

Categories

Resources