Hello.
I am currently working on a basic app for Chat which requires users to login through OTP upon their first use (through Firebase Authentication).
Along with that, I also tried to set up One Time Login(through Firebase Database).
But for some reason the app is not working (blocking part).
I spent the entire day finding ways to make it work, but it didn’t.
Be it whatever, but it’s all in the Screen1 and Login Screen.
I am attaching the .AIA file for your reference: chat (2).aia (419.0 KB)
Please help me. (if someone can fix the bugs in the AIA).
I am done with the verifying part.
Now I need is a One Time Login. That means when a user who already registered and logged in once doesn’t need to login again after restarting the app.
The Screen1 should directly take the user to Home.
As everyone said, use tinyDB to store password (if you have one) and phone number. Remember to encrypt the password and phone number using Cryptography
Here is an example of using Remember me (similar to One Time Login)
Then, when screen initialize, login with the stored value.
In this way, Screen1 is displayed for 1-3 seconds (depending on the Timer.Interval) and then automatically switches to the Login screen. When the user is logged in, the Home screen is called up. The next time the user opens the app, it will switch directly to the Home screen.
However, if the user has logged out, the app will switch back to the Login screen when the app is restarted.