Firebase Invites to Custom Apps - android

I have gone through the firebase invites documentation and implemented the parts I needed on my apps. However I found out that I am limited to sending invites by email/sms. This somehow limits the potential of sending invites to only people who are in your contact list.
For example I cannot send an invite to all my friends on a social platform unless they are in my phone contacts.
Is there a way to go around this?
Is Firebase planning to expand their invites platform?

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

Creating realtime user-presence detector server-side for android app

I am creating an android game where the user should be able to see other users that are currently online when answering questions and should be able to interact with them - ask questions and chat basically. No state will be saved after the user has interacted with other users - that part of the app does not save chat history nor does it save users online. I was looking at ejabberd and open fire or do i go with GCM?
Google Cloud Messaging, now rebranded on it's newer version, Firebase Cloud Messaging -- is a service commonly and mainly used for push notifications. I don't see how you could use this to build a Presence System, so no.
You might want to look into Firebase Realtime Database, specially this Firebase Blog on creating a Presence System with it.

Firebase Analytics for Android

Recently i integrated the firebase notification and migrated from GCM. Everything working well. But i want to know regarding USER-SEGMENT option in firebase console. Its totally works based on firebase analytics and captured some default user-properties and events.
Default capturing user-property :
https://support.google.com/firebase/answer/6317486
But before that the action i want to clarify below few items. Anybody knows reply those questions.
Different between Topic and Audience?. Where we need to integrate TOPIC and Audience?.
How will make the Audience via Firebase? and how will control like today particular user as a free member and captured that person into Free member in particular audience group and then he / she become a paid member, then how will remove that person from that particular audience group?.
Whether any possibilities monthly or day wise audiences can able to send the pushnotification via USER-SEGMENT in firebase console?.
User-property - Where i have to use this option in App?
How will do the firebase analytics for make this report like one particular member will take the action from this particular category?. ( For example : So many members like 20000 members take the action like send a message from Search Page. )
Any ideas regarding these clarification.
An audience is a group of the users of your app that share certain properties. For example, you could define an audience of all users of the Android version of your app from Holland. Then you could send a notification to that audience from the Firebase Console.
A topic is nothing more than a "thing" that the user's app can subscribe to. If you then send messages to that topic through either the Firebase Console of the Cloud Messaging API, it will be received by the apps that have subscribed to the topic.
You could say that topics are groups of users that the app code (and thus potentially the users) determine that they're a part of, while audiences are determined on the server based on app analytics.
You define audiences in the Analytics panel of the Firebase Console.

Implementing chat messaging using firebase

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.

Having Some issues with google cloud messaging api for android

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.

Categories

Resources