Set Alarms in android Firebase - firebase

I am a beginner in android and was working on a small project where multiple user sign up and perform different action like posting, liking, commenting. All data being stored on fire-base database and storage. I want to build an 'Events module' in the app, that helps each user set their own event, descriptions, time and days to give them reminders. I am unable to work as I don't know where to start. What should I use. I tried searching alarm manager but I really am not getting it so much. Many people have worked using SQLlite and alarm manager but I don't want to use sqlLite. Help me what should I start.

I found the answer to this a day after. The reason why we need to choose sqlite and not firebase is because alarms are locally stored on our mobile devices. Sqlite helps in such process whereas firebase works as cloud which is usually not recommended and used for alarms or calendars!!! Cheers

Related

Can we change real time database in our app while the app is in review mode?

We have listed our android app on the play store to get published but it is up for review for 3-6 business days. So in the meantime, can we update the real-time database of firebase? Will it affect our review time?
Like if I make changes in the database, the data in the app will also change, so will google start the review process again?
Please tell. It is important.
Thank you in advance.
You can change the data. Just make sure not to break the App. If it has errors because of that it can get denied. Othervise it should not be any problem.

How to have a script on my pc be called when my firebase database updates using firebase cloud functions?

I'd like a script on my Windows pc to be called when something is updated in my firebase database. I'm doing the guides for firebase cloud functions (https://firebase.google.com/docs/functions/get-started). These guides show me how to make scripts that interact with the database. I'm looking for something that would interact with the command line of my computer. Just wondering if it's possible and someone to point me in the right direction.
Edit answering comments:
I'm doing this because I have a database on my computer i'd like my ios app to be able to access (I'm really unsure if this is the best way to go about any of this). I want the app to update firebase and then when that update occurs my computer to know this and run a script that grabs info from the database and uploads that to firebase. I'm really a novice at all of this so any better suggestions would be helpful.

IONIC2 Building a custom audio streaming app with firebase

I was thinking of making an app which plays a specific set of small audio files stored away in a firebase database, or any other database on the cloud.
The number of files may exceed hundreds, so wrapping all the files in the app might not be the best of ideas.
I'd really like to know how to go about this problem.
Downloading only the required file from firebase when it's clicked and playing as its being downloaded all the while caching it for future playback seems plausible, but I'm not quite sure how to implement it.
I'd appreciate a few pointers towards this, thanks
Yes. You are thinking in the right direction.
You might use these things.
App UI - Ionic2 will provide you a very nice and easy to implement platform to create a UI. Please refer this documentation for the basics and details about using Ionic2.
Local Storage - You can use this to store downloaded files. In any app where data is relatively large, using local storage is the smart choice. This helps you reducing the size of the initial app to be installed and download the content as and when needed.
A well defined database - Now, whether to use non-structured (No-SQL) or structured (SQL) is the first choice you have to make.
If it's just content - audio files download and play with no complex cross querying the database, then you can choose to use non-structured (No-SQL) database like Firebase database.
But, if you have good requirements for structuring data, query it with constraints like "Give me all the audio files list where a particular user has played it in last 10 days" or "Give me all the users who has played/downloaded a particular audio file more than 10 times" and so on, then you better use structured (SQL) database like PostgreSQL.
RxJS - Now, this might not be very important to do, but, if you use this from the start, it's a good choice. Advantages are, e.g. you might not have to wait for all the file to get downloaded before playing it. Use Observables and Promises for such a mechanism.
Could help with the specifics when needed. Hope this helps. :)

Simulate updates inside Firebase Database Simulator

My question is pretty simple, I don´t know how to simulate multiple updates inside Firebase Simulator. Since I don´t know how to even start I can´t provide any code. Any guidance will be very helpful.
There is currently no way to execute multi-location updates in the Firebase Database security rules simulator.
It would be great to have that functionality, so can you file a feature request for it here?

Security for database SQLite of apps

I'm beginner in eclipse and android apps. what can I do for security of database? prevent hack or steel my database of my app. And where is database of apps in mobiles with android OS?
You can't. It is pretty trivial to get it, no matter what you do. If you want to keep your data safer, you can drop the local database, and make a web service where you get your data from. Then you will have to make some restrictions, so people will not rip your data fast. This is known as anti-farming and you can see more at https://www.owasp.org/index.php/REST_Security_Cheat_Sheet#Anti-farming
But this will only slow people down, and as the article says, large resource adversaries will still be able to get whatever they want.
What to do: don't focus on it, build a awesome app, so no other will reach your user level/profit.
Take a look at https://www.zetetic.net/sqlcipher/sqlcipher-for-android/. It is possible to create a encrypted database with that library. You should only think about where to place the key of it. One possible solution is that user has to enter the password via login dialog for example.
The database and app specific data is located at /android /data/package of your app folder.

Resources