I know that firebase has a real-time database, and I used it. But first, it is based on user authentication. I would like to make the firebase realtime database share its content with other applications. Just like ContentProviderin Android.
When i call:
FirebaseDatabase database = FirebaseDatabase.getInstance();
This will only get the firebase database for my application. I want other applications to be able to use the real-time database as well. How can they connect to it?
UPDATE:
Can a contentProvider conceptually solve this problem? since contentProvider is just an abstraction, and it doesn't care what the data source is, instead of using sql as the source, I could use firebase db. Then, since firebase db is wrapped inside a contentProvider, I could then open the URI for other applications and make publicProvider public. I will need to work more on this, but it should be possible, as the contentProvider is a wrapper for data sources, both network and local. The ContentProvider.query command will return the cursor, although it is not sure how to make the cursor from the extracted firebase data.
source
share