I am currently working on a project, this project is about an android application but it is currently on my friend's GitHub and it is currently connected to Firebase. I am not sure how to disconnect the project from Firebase. If someone could help that would be awesome. Please refer to this screenshot for further information:
Firebase Realtime Database is basically a Google program that hosts a database for you. In terms of being connected, generally we would be talking about a client connection to the host (the database). For that to happen you would have to be coding a program to connect to the database.
Are you talking about programmatically disconnecting the database? If not, I don't believe there's actually a connection there. It may just be Firebase telling you that you're on the right track to using the database in your program.
To double check that you aren't connected to the database, go in to your Firebase Console and double check that there isn't any usage happening on the Realtime Database. If there's not, I don't believe there's any connection you need to worry about.
Personally I've worked with Firebase before and used it in programs, and I've never come across a time when Firebase was anything other than a library or API for me to use. I doubt you need to worry!
If you're looking to delete the "App" on Firebase's end, you can go in to the Firebase Console and do that manually as well (to do this, you can go into your Apps card in the Firebase Console and select "Remove this app").
Furthermore, to delete the project itself in the Firebase Console, you can go to General Settings and click "Delete project".
Related
I built my android app using Firebase features, authenticating, database, push notifications.
the problem is, Syrian users can't use these features unless they run a VPN app first.
the app keeps showing them the message in the picture. Error 403 forbidden.
but after running the vpn, all the features run successfully, log in, sign up, getting the data from database.etc ...
is there any solution where the user can use these features without running a vpn?
thank in advance.
You have to know that all google development features are banned in Syria, Iran, Sudan and North Korea....
The solution is to try another database hosting.... I think it's available as SQL database only
I am working on chat application using Firebase, i need online, offline and last seen status of the user whom i am chatting with. I will get this status when user is connected to internet, when user doesn't have internet then it won't be updated in Firebase and it still shows online to offline user.
How to update Firebase database instantly when there is no internet connectivity?
How to update firebase database instantly when there is no internet connectivity?
There is no way in which you can update a Firebase database while you are offline. When there is no internet connectivity on user's device it means that the user cannot reach Firebase servers, with other words no changes will be made on Firbease servers but, if you are using the following line of code:
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
It means that you'll be able to query your the database even if you are offline. This is happening because Firebase creates a local copy of your database. Every change that is made while you are offline, will be updated on Firebase servers once you are back online. To be more clear, every client that is using a Firebase database and uses setPersistenceEnabled(true) maintains it's own internal (local) version of the database. When data is updated, it is first written to this local version of the database.
There is also a post on which I have answered a few minutes ago and I think you might be interested.
Try to add timestamp of both users to firebase at regular intervals .. if connection is down the last active time is shown .. so at both sides check the timestamp difference . If it is greater than some value then display as one user is offline .. makes sure both sides uses GMT time as standard
I have a problem, I build an application for android that can open a single led with the use of bluetooth module and it succesfully works, now my problem is what if I want to open my led in my home while im at my office. What will I do is I will left another android that can open the led in my office and I will make another android application that will pass a data in my database and that data will retrieve by my android in my office and will trigger to open the LED.. I need tips on how I will gonna do that.. thanks
What you can do is have a realtime database like Firebase Realtime Database to store your data you need to communicate. So when a data is changed or updated your Phones will have the fresh data in sync. and then you can trigger changes accordingly
For eg, if the device in your office, clicks (Turn On LED), it will update the Firebase database with a value like (true), on the other side the device at your home would read the value, and check if the value is (true), then run the code to turn on the LED
I'm new to android sync so I really need ideas to get started. Actually my app's requirement is like this: My app needs to connect to my database online. But my android app can be used offline meaning, the user can add records to a local db, say sqlite. And then when the user connects to the Internet, the app should automatically connect to the server and add the record the user added when he is not online. Can you give me some considerations and ideas on how to do this? I really need your help guys. Thanks.
I will recommend you to go for Sync Adapter. See these links
AbstractThreadedSyncAdapter and Creating Sync Adapter.
I have used them long time ago. I will say that it is the best approach for syncing data between device and server. Usually, email apps use these sync adapters.
Sample is also given there. Download it if you want to go deep inside of "HOW".
Thank You!
You need to run background service like android alarm manager. You need to check that device is connected via internet or not. if device is connected via internet then sync the data to server.
Check this like to the way of data sync
How to sync SQLite database on Android phone with MySQL database on server?
Thanks
I am want to do registration in my app. So i have made all requests to my web service.
I now when user is registered.
Now i need to save somewhere that he is registered that don't give him registration form again.
How to do this ?
Do i need to save somewhere in my sqlite database and every time when app lunches check if he is registered user. Or maybe in app settings i could save this information.
I am new to developing android app and i am searching for the right way.
Thanks all for help.
You could save that with SharedPreferences. Check the link for sample code.
http://developer.android.com/guide/topics/data/data-storage.html#pref.
This data will be removed if the users uninstalls the app or clears all data from system menu.
Edit: If you really want to remember preferences across installs you should try Backup API. http://developer.android.com/guide/topics/data/backup.html
The best solution is to use Android's Account Manager to handle user account. This aproach is the most secure (credentials are not exposed), however it has two drawbacks:
It's a little bit complocated to set up
It requires at least API version 5
Once the user registered you can save in your sqlite database and you have to check for each time when your application launches. But if the user uninstalled the application and tried to reinstall it ll ask for registration again.. In order to avoid this you have to store the information like the device id and the registered details in some servers and also in sqlite database and have to check when the application launches...