One to one and Groupchat in Android App - android

I am newer to Android but am trying to add a chat feature within my application. In terms of areas I have tried they include pre-built systems such as Quickblox and Scringo, but each are highly inflexible and also require employing their user authentication sources as well, which are not needed.
Is there a general location for resources to build a chat feature that will also persist past messages for viewing as well? Or suggested services that could help handle sending messages?
(Any guidance is greatly appreciated)

Related

How do I connect a webapp and an android app with firebase?

I have been trying to learn how to create an app that allows people to upload images via the web or android.
I know that Android uses content providers to implement a mechanism for the sharing of data between applications. More specifically, Android uses the MediaStore API to make use of this functionality. However, that is limited to other Android devices.
I was wondering how I would go about connecting a web app made using reactjs to an Android app preferably using firebase. However, if it isn't possible in firebase that would be okay too,
I am a beginner in web app development, so I am not particularly sure about how the software's architecture will look like.
I have been struggling to find an updated concise solution online. Can anyone point me in the right direction and if not point me to some resources that will guide me in the right direction.
Thank you!
Attach/configure both of your application to use same database and storage bucket in firebase
As you can see I connected my android application as well as web administration application to same firebase project.
As you can see there is an add app option in firebase console where you can select platform. Register both of your application on same project and thats it.

Is there a way to setup a pubsub subscription?

I want to use pubsub's pull subscription.
So far its been hard to figure out setting auth & fails in subscription or grpc.
Also its not recommended to package client-secret.json in apk.
Havent found any leads to setup on android
Has anyone done this on android
On the Setup client library its mentioned
Note: Cloud Java client libraries do not currently support Android.
Following this link for Pull Subscriber
Any help would be appreciated
Pub/sub to a mobile platform has some potential issues, depending on your use-case. For example, if a phone is off for a long time, pub/sub will queue a lot of messages which may be expensive. You also would need to create a topic for every user if you want to keep data for each user private.
You might find that Firebase Cloud Messaging is a better solution for pushing notifications to an android app.
Although the com.google.cloud.pubsub library doesn't support Android, the com.google.api.services.pubsub library does. com.google.api.services.pubsub is auto-generated, so is harder to use and worse documented, but it should work on Android.
See client libraries explained for the difference between the libraries.

Creating a Mobile Application with chat functionality native Android using FCM/GCM

I have tried creating a mobile application with User Management, Social Networking, Work sharing , Chat capability between the users in a single and group manner.
Initially, I had used MBaas platforms such as quickblox and Parse. Quickblox seemed to be the best fit for my application requirements since the way creating Custom Classes ( easy to create Model classes to map my requirement which supports Entity relationships ) but felt the platform to be bit immature and bugs popped up every now and then during API calls( though used Quickblox free edition due to very stringent budget constraint usually for a Startup).
Parse , on the other hand in my limited research found to have limitations for while scaling to larger application with Pricing as well as performance.
Now, on deciding to use FCM ( recently Google moving on from GCM to FCM )
as the chatting functionality.So the other core functionalities such as user and their group related features to a separate web application which communicates to the Google Server.My doubts revolves around the points below
It seems that FCM supports only text messages ( don't know whether
its limited too?) and no media or file attachment support?
found the Google Firebase Console has a Database support. Is it only
for the chat messages sync or it can be customised to add further
functionalities ( my other functionalities in this App )
Or else if using separate web application to manage functionalities
apart from chat and FCM for chat would be good enough architecture?
If using separate application , will the file or media attachments
for the chat be an issue?or any other strategy can be used here for
such scenarios?
Appreciate your valuable thoughts . This would really help us incorporate valuable tips upfront in development process .
Thanks in advance.

which database should I use?

I am planning to build a web application and android app, which will manage huge numbers of notification (push notification), and can work in slow internet connection too. I need to send and get instant notifications. Number of users can be thousands or millions, application will have multiple servers (web farm), multiple database. Now I need to decide that which database will be best for this kind of application and which language should I use for programming. Please help me out. Any suggestions will be appreciated
Well, first you need to decide what your immediate needs are. Are you going to use this on a platforms that could potentially have hundreds of people accessing information at the same time? Then you need to estimate your future needs.
This will help you to decide your database system.
As per my experience i am suggesting you to use MYSQL database.
I Blindly Suggest you to Use Parse Cloud Database,as it provides SDK for All mobile Environments like Android and IOS for easy implementation and also it recently Launched a Javascript SDK to use.Its free for Trial.MultiPlatform Support and Secure
Check it out Here: https://www.parse.com/
Are you sure you going to get to thousands and millions users ? Everyone starts from scratch (read: zero users, except some friends). By this I mean, that you have to concentrate on what's the real issue within your development (growing app user base is different story):
Creation of Android app and it's lifecycle (updates, support of previous versions & etc).
Back-end. Will I also work on Back-end. Working on 2 'projects' (Android app and it's back-end) isn't easy. Not everyone is experienced enough to work on multiple assignments at the same time.
Valuate an option of using SaaS/Paas backend. Most of the have trial or free version for developer.
Third option is great. Get cheap/free web host. Store there configuration, that your Android app will download when it starts. In configuration you should declare what's the back-end and how to communicate with it. You can use any of known services like https://www.firebase.com or https://parse.com/plans or even use Google App engine free tier / AWS free tier.
About developing app for Android - if your app doesn't need any complex calculation or libraries - just write it with JavaScript. It's fast enough. Though, Java apps are always faster and easier to debug.
Good luck !

Does AWS SDK for Android supports IAM new user creation?

I'm trying to create a new user in IAM using Amazon web-service SDK for Android.
But after searching a lot I couldn't find any sample codes or documentation clearly stating the above functionality. I saw this and also this.
The first link only works for Java SDK only.
So my question is does AWS SDK for Android support a way to create a new IAM user programatically?
I also faced the same problem.I mailed AWS technical support team for solution.They clearly stated that android sdk for aws does not supports the new user creation for IAM.
Actually I am not sure about IAM implementation for Android, as a Web Service you can use them in a deeper level anyway, but I don't think this is your needs.
I suggest you read IAM Limits, which shows some limitation on users number, which may be a problem for future growth.
In your scenario I would suggest this article which will require another layer to control user authentications with token control, it will solve user limitations, will give you a lot more security and control over your system.
After all, you can still using IAM for user's power level control, as another security layer.

Categories

Resources