I have two apps and using same firebase project for both the apps , and i want to check if the user logged in through the first app , then if he open the second app for the first time get the data if the current user is logged is or not with the same email. Is it possible to check this through firebase or i have to do it locally .
Related
This question already has answers here:
Deleted user has access to Firebase Firestore
(1 answer)
Firebase Authentication ( Email & Password ) how to check existing user
(1 answer)
Closed 16 days ago.
I can succesfully log in my flutter app using Google/Apple sign in and I can see the logged users in my firebase console.
When I try to go to my google/apple account and from settings remove my app from those with sign in capabilities, I'm expecting the next time I start my emulator and try open my app to be logged out and asked to log in again, but I'm still logged in.
(for reference:
Google
Open your Google Account.
Choose Security.
Scroll down to "Signing in to other sites" and choose Signing in with Google.
Choose the app or service you want to remove and then Remove Access.
Apple
go to Settings, then tap your name.
Tap Password & Security > Apps Using Apple ID.
Select the app or developer, then tap Stop Using Apple ID. )
I've read that firebase automatically refreshes tokens about every hour, but even after that time I can open the app and still be logged in.
I couldn't find any documentation on this case, is this the expected behavior? if not, what could be the problem?
Thanks.
The tests has been done on an iOS 13 emulator.
for sign in with apple I used the package "the_apple_sign_in"
for Google's sign in the "google_sign_in" as described by firebase's tutorial ( https://firebase.google.com/docs/auth/flutter/federated-auth?hl=en )
I'm just new to flutter, is there a way to authenticate the user to only log in to one device at the same time without using firebase? I'm doing my research and all I'm seeing is they using firebase. My backend is Go.
Hy. I am building a chat application in flutter and I want to show users last seen, offline and online status, using firebase as the backend. I complete all these active status things..like storing offline online and typing status. but the problem is if the user turns off the data while using the app the user active status is showing as online . Because he was using the app. So how can I change that status to offline, if the user turns off the internet connection from mobile .
I have a RestAPI which will hit to authenticate the user. This api is to android they hit this api to allow user to login to our app
My requirement is this.1) If user has cell phone say xyz phone with IMEI "xyzz1234". Now if he tries to log in from his 2nd phone than he should not be allowed to login from 2nd phone. He should log out automatically from abc device.
As i am using ionicv1 framework for mobile applications.
You can update the deviceID in your database once the user Sign in on another device.
In your signIN API, validate your deviceID.
For the case of login state saved in your app, you can hit an API at your dashboard on startup which can make the person logout.
This could be one possible approach :)
We are developing a hybrid iPhone application. It has a webview that loads some mobile website. Website requires user authentication and once user is authenticated we need to show badge count for unread messages.
We are looking to use Push Notification to show badge count but I am not sure how should we register for push notification dynamically once user log-in and de-register once user log-out.
I believe if we can have some way to invoke native class method through javascript then we can achieve it.
Please suggest.
It is very simple whenever user logged-in, post a entry into the db and send notification for the records entered into the db and when user logging-out delete the entry from db