android device to device communication using parse - android

I want to create a android application that allows to people to send a simple message to a contact.
I don't want to make a instant messaging app, but want the user to be able to send a small messages to another contact selected on the user list, using parse.
I would rather not use other services like Pubnub, because I have heard you can send messages using parse as a backend.
please could you provide a tutorial link or GitHub or just code to send message to contact.

here is the tutorial link for parse:
https://www.parse.com/tutorials/android-push-notifications
Also this is something you can implement yourself using a server and Google Cloud Messaging. It's not too difficult to do.
https://developers.google.com/cloud-messaging/

Related

How to integrate a chat feature without using the device messaging app

Have 2 apps on separate devices: Rider & Driver.
Let's say, the Driver needs to contact the Rider via messaging, or vice versa, is there a way to do it without using the stocked message app to protect privacy?
My idea was to create on both apps an empty box, add a text view for the message and send button and add the msgs to firebase db. Unfortunately, i am not sure how i would do it in Android as well as the response.
Any suggestions or how to's would be greatly appreciated.
You could probably integrate your app with Firebase.
For simple messaging, you could use Firebase Cloud Firestore to do it and for notification, you can use Firebase Cloud Messaging.
Messaging
You can have a sub-collection to store all the chats between the rider and driver in the form of documents. 1 chat will be a document storing the info such as time, sender, as well as message.
Notification
From the doc:
Send acknowledgments, chats, and other messages from devices back to
your server over FCM’s reliable and battery-efficient connection
channel.
You could start research from Firebase sample application.
Highly recommend you go through this third party tutorial: Firebase Tutorial: Real-time Chat to get some idea, it's in iOS but the concept is the same.
Yes, there is a way to do it.
Actually you can use any messaging platform, e.g. Firebase, ConnectyCube, Twillio, Layer etc.
All of them provide API & SDK for iOS, Android and Web for chat so you can easily do it using it.
I used ConnectyCube some time ago, it can be done in the following way:
Initialize app
Sign Up user
Connect to chat
Create a chat dialog with other user
Send/Receive messages
More detailed chat code sample for Android can be found here
Most of the above platforms provide a cloud hosted plan, but some of them also provide an Enterprise plan when you the whole platform can be installed at your AWS/Google/Azure account, so hence the privacy is the best because you own all your data

Android Board casting Application

Hi we like to build from scratch an application that has the following purpose and function.
Situation:
A restaurant chain owner has multiple outlet, Food Menu is currently displayed on Android Tablet.
Problem:
Right now the update is done manually on each tablet, pricing and pictures of food.
Improvement:
A Single Table/Computer to push information, data, pictures to multiple android tablet at various restaurant.
How can we build something like that.
Looking forward to the experts here.
Sincerely thank you
Push Notification is the answer. You can implement it in multiple way; for example Parse.
The Parse library provides push notifications by using Google Cloud Messaging (GCM).
Connect your app to Parse. Before getting started, you will need to set up and connect your app to Parse. ...
Send a Test Push Notification. At this point, you're ready to send push notifications. ...
Customizing Notifications.
Furthermore, you can follow these links
http://www.tutorialspoint.com/android/android_push_notification.htm
http://code.tutsplus.com/tutorials/how-to-get-started-with-push-notifications-on-android--cms-25870
for parse https://parse.com/tutorials/android-push-notifications

Realtime Web to Mobile Chat Application Using Firebase

We are building a real-time mobile to web text & image chat application using Firebase. Consumers can send messages to 10 categories for example, TV Help, Computer Help, Camera Help etc from an android mobile app. Agents will receive messages on an AngularJS web app where they can reply. Now, one category can have many agents under it.
For example, if ConsumerA sends a message to "Camera Help", the messages should be routed to AgentA & AgentB, if they are handling "Camera Help". Any of them can reply to the consumer.
What is the best way to structure a firebase database for this use case?
Also, we would like to send consumers android push notifications if the app is not in use. I have heard you can use a firebase queue, but it seems challenging, are there any examples of this?
Thanks
Well if I am to design your firebase it would be like,
Customer_name
Customer_number
Customer_address...and other customer related data
Category_of_item
Message
Time and date of message
The part of using firebase for push notifications is concerned, then there is no direct support for that in firebase I would suggest you to go for parse or GCM. Cheers :)

PushNotifications - How to Implement

I am a newbie in android. I have developed few applications, but all are plain and simple, just used the built in features of android.
I was asked about push notifications, in one of my interviews and I decided to have a look at what Push Notifications are. I understand the concept of Push Notifications(I think), but whenever I read the term "Server", it's freaking me out.
I understand all the client side coding, but I don't get how to implement the server side coding. I have seen some people use XMPP, MQTT, etc., What are those? Here is my scenario and what I want to know..
Scenario ::: Let's say I have a website, with a table (the values are retrieved from database), where I update a few columns every day. I want these updates to be reflected in my android application. So, as I have read, push notifications can tell the application that there are updates available. Good. I am fine till here..
When the application gets the notification, should my application, contact the website and get the latest information? or will the updated information sent through Push Notification? I guess, my application would be contacting the website and get the information. Now, how do I get the data from the website? Should I get the source of the page and do some kind of parsing or something?
I will be asking more questions, as the experts clear my questions...
Sorry, if my questions are too naive, but this is the only place that can help me...
Push Notifications means Google Cloud Messaging for Android (GCM) is a service that allows you to send data from your server to your users' Android-powered device.
You can refer to this documentation
Google Cloud Messaging for Android
GCM: Getting Started
And there is also Demo App Tutorial given
in your case you need to create HTTP web service for getting data from the server.so when you get notification about update on server side.you just need to call this web service and get the data you need to update

How to implement chat features in Android application?

I am making an application in which I need to implement chat features. We have our own server from we get friends list from the server.
I need to send msg to that friends and get reply message from that friends. For this I think I have to send msg to server of that friend in which I have to chat.
But I am unable to understand how to get reply from the server of a chat message.
Please help
You can use different APIs to implement the chat feature. Here is the link for sample open source chat application which using Smack api.
http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/
see the sample application which is based XMPP protocol. You can configure your google account for testing.
You can implement the chat features either by using third party API like (Smack ,Asmack) or by implementing your client server logic. I will prefer you to use above API for implementing chat features in your application.

Categories

Resources