I'm creating a type of chat messaging app using firebase. I'm following firebase documentation and the codelab links for the samples, but I'm stuck at one point before the chatting part.
I ask the user to login to his Google+ account using Google+ api in my app, then they have to connect which will send invites to whomsoever they wish. I implemented it as per this link. It is indeed sending out a mail to that user as a invitation request, but I'm not able to understand what is supposed to happen once they click on invite. Or how will the two user start conversing with each other?
May be I'm missing out some crucial steps, please help me out.
Related
Friendship requests are sent with a link as in Pubg Mobile or Clash Royale. In React Native, users will be able to share a link and when others click on the link, the data in the link will be added to the user's database. Is such a thing possible?
Yes, you need to use Firebase Cloud messaging.
First you need to create a Firebase account
You can integrate that into your react native project through this link (RNFirebase cloud messaging). Once you installed and setted all the environment, follow the guide about Notifications. That guide teaches you how to handle push notifications sent by firebase. You will be able to set a listener when a message (like a link) is received and when the user press on it, after that in your app you can access to the data that has been sent and manipulate as you want (like adding it to user's database)
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
Logic/Code question here.
Hello all,
I am building an social network type of Android app where specific group of people share their views. And for this , I planned to use only Facebook for everything, posting, commenting and all. The posts are posted on a page.
My problem is like this:
Suppose, a user posted a thing through the app, another user comes and interact with the post by commenting.
Now I need to send a notification to the first user that second user interacted with his/her post.
The notification should be on mobile app, not Facebook app.
Any idea, how can I solve this problem?
Any sort of help would be appreciated.
There is no simple solution for this. You may want to look for third-party solutions. Basically,
When a user logs in, send the device token and facebook user id to your server and store them in a database.
When a user makes a post, link the post id to the device token.
When a user comments, get the facebook user id of the parent post, then get the device token, then send a notification to the device token.
I am new to gcm api for android and have for some time now i have being working on an android app to allow chatting between two users of the app. The app is such that a chat can only be initiated when one user opts to contact the other user. But my confusion comes in the manner i would be able to create a chatroom for these two users and for the other user to be able receive messages. since i found out that each user must subscribe to a topic inorder to receive messages in that topic. Would i have to subscribe all users to all possible topics or what? that is my big question but it seems it would have so much overhead considering i have 1000+ users.
Please i need all the help i can get here. Thanks
Would i have to subscribe all users to all possible topics or what?
GCM topic messaging allows your app server to send a message to multiple devices that have opted in to a particular topic.
It is not a requirement but it can ease the work for the server to send messages. In this tutorial, you will see that they have created a chat like environment using GCM without using the topic function.
BUT consider the effects on your server like how will it behave on the potential load when you use the topic messaging, especially the the message will trigger an interaction from the user to the server.
I am currently developing an app which includes fetching facebook friends(all) and messaging them individually through facebook. I tried the openFB and successfully got it working but.
facebooks new graph API does not provide friends list(its just provides friends using the same app)
me\tagggable_friends gives me list of all the friends with a token, which can be used to tag them in any stories.
these I cant use for sending messages to individual facebook friends.There is a message dialog they are saying for IOS.Android , and a send Dialog for websites, because I am using cordova I need to use the send dialog, It's not working in mobile device
Anyone implemented this in any app, Please share your thought on this I am kind of stuck ,feels like facebook integration for this app is now useless unless I can implement the messaging feature
Thank You,