Firebase Cloud Messaging without google credentials - java

I'm developing an android app and I want to insert a chat into it.
I read I could use FCM(Firebase Cloud Messaging) to develop the chat, but I want to know one thing: is it possible to use FCM without logging in with google credentials on my app?

Yes. You can use Firebase Cloud Messaging without requiring the users of your app to sign in. Each app instance is identified by a so-called FCM token. See https://firebase.google.com/docs/cloud-messaging/android/client

Firebase realtime db can be used to create chat apps in tandem with usage of Firebase cloud messaging. However if you want to keep the DB safe and secured, you will need some form of Authentication.
This does not necessarily have to be google auth. Check out Firebase Auth and the methods they support.
Alternatively, you can use Google oauth apis to generate an Auth token and use them with Firebase REST apis and not have to use Firebase auth.
Summary: Yes you can build the chat app with Firebase RTDB and FCM without google auth or any auth. But it's advisable to use some for of Auth (Firebase auth, Google oauth, Twitter oauth or Facebook oauth are such examples)

Related

Phone authentication still not working even after SafetyNet check

After looking at firebase documentation for hours I figured out that the only way to avoid a reCaptcha while phone authentication is using Safety Net. But even after I read the documentation and implementated attest() method, the phone authentication doesn't work.
Code used for safety net before Phone auth in firebase
Firebase Auth does not require firebase App Check. Firebase App Check if for protecting the data and firebase auth if always protected by google and only the connected app can access. So you need not add Firebase App Check.Or if this is not the case, please make sure that the phoneNumber Verification is enabled
but remember, till now firebase has not implemented anything to remove the reCaptcha

How to use firebase to send OTP to a mobile number SpringBoot?

I am using Twilio to send OTP to the user's mobile number. Now, I am planning to migrate to Firebase as I am doing google and Facebook authentication using Firebase.
I could not find any documentation associated with Firebase with SpringBoot. Appreciate if anyone could point me to the right resources.

How do i publish a firebase login app on amazon app store?

so i have been trying to publish my app on the amazon app store.
but as i have made my app on the firebase system i use mobile authentication or google login to let users login to my app but as amazon is not able to login to my app using those features they're unable to login to my app and is continuously rejecting my app.
can anyone please tell me what is the correct way to let them login to my app.
or do i need to create a fake login system with a fake account just for them to login.
here is my app link http://texts.ga
i did contacted them and told them to login via any of the two methods and they did login via the google login but still they are asking for login credentials again.
thanks in advance for any kind of help
Firebase Authentication, along with some other Firebase products, require Google Play services installed on the device in order to work correctly. Amazon devices don't have Google Play services, so Firebase Authentication will not work on them.

Android authorization with Google for my own server

So I'll start from the beginning. I want to create an Android application and a server (written in java). The server will be written in Java. What I want to do is to be able to log in to my server from the Android application, using the Google account. After the device is logged in, there will be some information sharing with HTTP Requests. I want to use REST.
How should I proceed for achieving my goal? I guess I should use the Google API and Google App Engine. What should I do to implement the log in and the part in the server. It's first time for me writing a server and an application with log in, so any advises will be appreciated. The application is for educational purposes. Thanks in advance!
I would really suggest you give Google App Engine a try, specially combining it with Cloud endpoints which are designed to connect your server to clients like an Android App. Using endpoints you'll get cloud infrastructure + REST services + native libraries ( for Android, JS and iOS) and everything related to authentication is already sorted out (via OAuth).
App Engine can also be developed using Java and it's already integrated with popular IDEs like Eclipse (through the Google Plugin) and Android Studio (as backend modules) so you prbably have everything you need to star working on your App Engine server.
Use Google Play services (you don't need App Engine).
Here is the complete process with code samples: Authorizing with Google for REST APIs
Another option you can look at: Google+ Sign-in for Android
On the server side, once you have the auth token, you access the Google REST API with the username and token, and Google will tell you if the access is authorized.
I understand what you're trying to do. Your user already has a username and credentials on Google, why not just get the username and let Google do all the authentication?
However, you might want to re-think this approach.
The problem is that you will ask your user to sign in to Google and Google will ask the user (through logic in the Android API code) if your application can have access to their information in Google. Your users may balk at granting that kind of access to your application, and that will hamper your efforts to get people to use your app.
Now, if your app actually uses the Google REST APIs, then this would make more sense, because the auth token your app requests will provide access to a Google API.
But if all you're doing is authenticating, your users might be hesitant to authorize your app for some Google operation they don't think you need.
To get a feel for the OAuth 2.0 message flow, you can use this: OAuth 2.0 Playground

How to make google apps can subscribe to user google account java

Which library API in Java that I should use to make my google apps on google app engine server can subscribe to user's google account. So when the user login to its gmail account, it will send message to my app saying that the user just login to it's gmail.
Thanks.

Categories