The point is RealTimeDatabase has more then one meaning. In principle, you either have a central database to record all chat conversations. A matter of 'what's a name' but if you don't want a central database, it seems more like you want to log your own chat conversations in a local database. The more precisely you define your desired functionality, the better you can search for the necessary (partial) solutions on this forum.I need example for Chat-App , this Chat-App sure use database between users,
Probably you can't find exactly what you want, but you will get some useful starting points as MicroDrie and Andrew says.I can't find example here
First of all, I'm not an expert on this issue, but Google is sticking all kinds of "band-aids" on Android to improve user security and privacy in each new Android release = higher API level. The annoying consequence for software designers is that what works normally at first, unfortunately no longer works in a new higher API version. The API level can be seen in the manifest file and the comment in the log about the current API level. Some things with the current API level 33 only work in the foreground when the app is active. So what you need is a receiver that remains active in the background (and possibly gives a toast message when a new message is received) while the received message is add to the database.It work well, just it not have notifications,
and suffer from , if any user not run software all messages not received, ( to receive all messages you must run app forever ).
I would suggest that you also have another method of getting messages from the database as well as receiving the notifications. When the app starts it can use this call to the read all messages which were sent whilst it was closed.
I am not aware of an example of this so you will probably have to code it yourself.
perhaps Erel's implementation of a Mastadon client will help.
[B4X] [B4XPages] Pleroma / Mastodon Client
Roughly speaking, Mastodon is an open source, distributed, social network a bit similar to Twitter: https://joinmastodon.org/ Pleroma is a lightweight implementation of Mastodon with some extensions: https://blog.soykaf.com/post/what-is-pleroma/ I'm building an open source client for Pleroma...www.b4x.com
Dear Mr. AndrewThere are many options for the server.
If you want to run a B4J server then you need to have VPS hosting so that you can run java on the server. Most, if not all shared servers do not have this.
I have experience with PHP so I use Laravel to create my servers. This will run on a shared hosting platform as most shared hosting platforms have PHP and a MYSQL variant.
There are also other PHP options.
They can all be found by using the forum search.
Cheers